Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_new_file_test.c28 static void show_result(int result, char should_success) in show_result() function
128 show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0), 1); in stage_file_test()
130 show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0), 0); in stage_file_test()
134 show_result(write_sysctl(TEST_SYSCTL_PATH, buffer), 1); in stage_file_test()
136 show_result(write_sysctl(TEST_SYSCTL_PATH, buffer), 0); in stage_file_test()
140 show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0) && in stage_file_test()
143 show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0) && in stage_file_test()
148 show_result(uselib("/bin/true"), 1); in stage_file_test()
150 show_result(uselib("/bin/true"), 0); in stage_file_test()
169 show_result(error ? EOF : 0, 1); in stage_file_test()
[all …]
Dtomoyo_file_test.c35 static void show_result(int result) in show_result() function
82 show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0)); in stage_file_test()
84 show_result(write_sysctl(TEST_SYSCTL_PATH, buffer)); in stage_file_test()
89 show_result(uselib("/bin/true")); in stage_file_test()
108 show_result(error ? EOF : 0); in stage_file_test()
113 show_result(fd); in stage_file_test()
119 show_result(fd); in stage_file_test()
125 show_result(fd); in stage_file_test()
131 show_result(fd); in stage_file_test()
137 show_result(fd); in stage_file_test()
[all …]
Dtomoyo_rewrite_test.c35 static void show_result(int result) in show_result() function
78 show_result(fd); in stage_rewrite_test()
83 show_result(fd); in stage_rewrite_test()
89 show_result(fd); in stage_rewrite_test()
94 show_result(fd); in stage_rewrite_test()
99 show_result(fd); in stage_rewrite_test()
103 show_result(truncate(REWRITE_PATH, 0)); in stage_rewrite_test()
107 show_result(ftruncate(fd, 0)); in stage_rewrite_test()
110 show_result(fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_APPEND)); in stage_rewrite_test()
123 show_result(fd); in stage_rewrite_test()
[all …]
Dtomoyo_new_test.c29 static void show_result(const char *test, int should_success) in show_result() function
628 show_result(tests[i].policy, !should_fail); in main()
644 show_result(tests[i].name, 1); in main()
/external/autotest/client/tests/ltp/patches/
Dsysctl.patch219 - show_result(sysctl(name, 3, buffer, &size, 0, 0));
220 + show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0));
222 - show_result(sysctl(name, 3, 0, 0, buffer, size));
223 + show_result(write_sysctl(TEST_SYSCTL_PATH, buffer));
246 - show_result(sysctl(name, 3, buffer, &size, 0, 0), 1);
247 + show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0), 1);
249 - show_result(sysctl(name, 3, buffer, &size, 0, 0), 0);
250 + show_result(read_sysctl(TEST_SYSCTL_PATH, NULL, 0), 0);
254 - show_result(sysctl(name, 3, 0, 0, buffer, size), 1);
255 + show_result(write_sysctl(TEST_SYSCTL_PATH, buffer), 1);
[all …]
/external/linux-kselftest/tools/testing/selftests/pstore/
Dpstore_tests14 show_result $?
18 show_result $?
23 show_result $?
Dcommon_tests20 show_result() { # result_value function
48 show_result $?
78 show_result $?
Dpstore_post_reboot_tests58 show_result $?
66 show_result $?