Searched refs:EXPECT_SYSNE (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/nolibc/ |
H A D | nolibc-test.c | 317 #define EXPECT_SYSNE(cond, expr, val) \ macro 852 CASE_TEST(getpid); EXPECT_SYSNE(1, getpid(), -1); break; in run_syscall() 853 CASE_TEST(getppid); EXPECT_SYSNE(1, getppid(), -1); break; in run_syscall() 854 CASE_TEST(gettid); EXPECT_SYSNE(has_gettid, gettid(), -1); break; in run_syscall() 855 CASE_TEST(getpgid_self); EXPECT_SYSNE(1, getpgid(0), -1); break; in run_syscall() 874 CASE_TEST(dup_0); tmp = dup(0); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall() 876 CASE_TEST(dup2_0); tmp = dup2(0, 100); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall() 878 CASE_TEST(dup3_0); tmp = dup3(0, 100, 0); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall() 882 CASE_TEST(getdents64_root); EXPECT_SYSNE(1, test_getdents64("/"), -1); break; in run_syscall() 899 …CASE_TEST(open_tty); EXPECT_SYSNE(1, tmp = open("/dev/null", 0), -1); if (tmp != -1) clos… in run_syscall() [all …]
|