diff options
Diffstat (limited to 'tests/stat/test_mknod.c')
-rw-r--r-- | tests/stat/test_mknod.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/stat/test_mknod.c b/tests/stat/test_mknod.c index 4cff57d9..361b2315 100644 --- a/tests/stat/test_mknod.c +++ b/tests/stat/test_mknod.c @@ -2,6 +2,7 @@ #include <dirent.h> #include <errno.h> #include <fcntl.h> +#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -52,15 +53,10 @@ void test() { // mknod a character device err = mknod("mknod-device", S_IFCHR | 0777, 123); -#if USE_OLD_FS - assert(err); - assert(errno == EPERM); -#else assert(!err); memset(&s, 0, sizeof s); stat("mknod-device", &s); assert(S_ISCHR(s.st_mode)); -#endif #endif @@ -93,4 +89,4 @@ int main() { setup(); test(); return EXIT_SUCCESS; -}
\ No newline at end of file +} |