Searched refs:EXPECT_SYSZR (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/tools/testing/selftests/nolibc/ |
D | nolibc-test.c | 297 #define EXPECT_SYSZR(cond, expr) \ macro 1027 CASE_TEST(kill_0); EXPECT_SYSZR(1, kill(getpid(), 0)); break; in run_syscall() 1028 CASE_TEST(kill_CONT); EXPECT_SYSZR(1, kill(getpid(), 0)); break; in run_syscall() 1031 … if ((p1 = p2 = sbrk(4096)) != (void *)-1) p2 = sbrk(-4096); EXPECT_SYSZR(has_brk, (p2 ==… in run_syscall() 1032 CASE_TEST(brk); EXPECT_SYSZR(has_brk, brk(sbrk(0))); break; in run_syscall() 1033 CASE_TEST(chdir_root); EXPECT_SYSZR(1, chdir("/")); chdir(getenv("PWD")); break; in run_syscall() 1034 CASE_TEST(chdir_dot); EXPECT_SYSZR(1, chdir(".")); break; in run_syscall() 1036 CASE_TEST(chmod_argv0); EXPECT_SYSZR(1, chmod(argv0, 0555)); break; in run_syscall() 1039 CASE_TEST(chroot_root); EXPECT_SYSZR(euid0, chroot("/")); break; in run_syscall() 1043 CASE_TEST(close_dup); EXPECT_SYSZR(1, close(dup(0))); break; in run_syscall() [all …]
|