strace/tests/umask.c
Fei Jie eee3476844 tests: add umask.test
* tests/umask.c: New file.
* tests/umask.test: New test.
* tests/.gitignore: Add umask.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add umask.test.
2016-03-01 08:55:37 +00:00

13 lines
170 B
C

#include <stdio.h>
#include <sys/stat.h>
int
main(void)
{
mode_t rc = umask(044);
printf("umask(%#o) = %#o\n", 044, rc);
puts("+++ exited with 0 +++");
return 0;
}