Searched refs:EXPECT_SYSNE (Results 1 – 1 of 1) sorted by relevance
/linux-6.1.9/tools/testing/selftests/nolibc/ |
D | nolibc-test.c | 274 #define EXPECT_SYSNE(cond, expr, val) \ macro 467 CASE_TEST(getpid); EXPECT_SYSNE(1, getpid(), -1); break; in run_syscall() 468 CASE_TEST(getppid); EXPECT_SYSNE(1, getppid(), -1); break; in run_syscall() 470 CASE_TEST(gettid); EXPECT_SYSNE(1, gettid(), -1); break; in run_syscall() 472 CASE_TEST(getpgid_self); EXPECT_SYSNE(1, getpgid(0), -1); break; in run_syscall() 490 CASE_TEST(dup_0); tmp = dup(0); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall() 492 CASE_TEST(dup2_0); tmp = dup2(0, 100); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall() 494 CASE_TEST(dup3_0); tmp = dup3(0, 100, 0); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall() 497 CASE_TEST(getdents64_root); EXPECT_SYSNE(1, test_getdents64("/"), -1); break; in run_syscall() 514 …CASE_TEST(open_tty); EXPECT_SYSNE(1, tmp = open("/dev/null", 0), -1); if (tmp != -1) clos… in run_syscall() [all …]
|