Home
last modified time | relevance | path

Searched refs:EXPECT_SYSER (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/tools/testing/selftests/nolibc/
Dnolibc-test.c360 #define EXPECT_SYSER(cond, expr, expret, experr) \ macro
1026 CASE_TEST(getpgid_bad); EXPECT_SYSER(1, getpgid(-1), -1, ESRCH); break; in run_syscall()
1029 CASE_TEST(kill_BADPID); EXPECT_SYSER(1, kill(INT_MAX, 0), -1, ESRCH); break; in run_syscall()
1035 CASE_TEST(chdir_blah); EXPECT_SYSER(1, chdir("/blah"), -1, ENOENT); break; in run_syscall()
1037 CASE_TEST(chmod_self); EXPECT_SYSER(proc, chmod("/proc/self", 0555), -1, EPERM); break; in run_syscall()
1038 CASE_TEST(chown_self); EXPECT_SYSER(proc, chown("/proc/self", 0, 0), -1, EPERM); break; in run_syscall()
1040 CASE_TEST(chroot_blah); EXPECT_SYSER(1, chroot("/proc/self/blah"), -1, ENOENT); break; in run_syscall()
1041 CASE_TEST(chroot_exe); EXPECT_SYSER(1, chroot(argv0), -1, ENOTDIR); break; in run_syscall()
1042 CASE_TEST(close_m1); EXPECT_SYSER(1, close(-1), -1, EBADF); break; in run_syscall()
1045 …CASE_TEST(dup_m1); tmp = dup(-1); EXPECT_SYSER(1, tmp, -1, EBADF); if (tmp != -1) close… in run_syscall()
[all …]