Home
last modified time | relevance | path

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

/tools/testing/selftests/x86/
Dnx_stack.c97 static volatile int test_state = 0; variable
123 if (test_state == 0) { in sigsegv()
130 test_state = 1; in sigsegv()
131 } else if (test_state == 1) { in sigsegv()
139 test_state = 2; in sigsegv()
140 } else if (test_state == 2) { in sigsegv()
145 test_state = 3; in sigsegv()
/tools/testing/selftests/bpf/
Dtest_progs.c69 env.test_state->stdout_saved = stdout; in stdio_hijack_init()
103 stdout = env.test_state->stdout_saved; in stdio_restore_cleanup()
104 stderr = env.test_state->stdout_saved; in stdio_restore_cleanup()
106 fclose(env.test_state->stdout_saved); in stdio_restore_cleanup()
107 env.test_state->stdout_saved = NULL; in stdio_restore_cleanup()
263 static void print_test_result(const struct prog_test_def *test, const struct test_state *test_state) in print_test_result() argument
265 int skipped_cnt = test_state->skip_cnt; in print_test_result()
266 int subtests_cnt = test_state->subtest_num; in print_test_result()
269 if (test_state->error_cnt) in print_test_result()
320 const struct test_state *test_state, in dump_test_log() argument
[all …]
Dtest_progs.h82 struct test_state { struct
115 struct test_state *test_state; /* current running test state */ argument
/tools/testing/selftests/bpf/prog_tests/
Dprog_tests_framework.c6 static void clear_test_state(struct test_state *state) in clear_test_state()
15 struct test_state *state = env.test_state; in test_prog_tests_framework()
/tools/usb/ffs-aio-example/multibuff/host_app/
Dtest.c48 struct test_state { struct
59 int test_init(struct test_state *state) in test_init() argument
145 void test_exit(struct test_state *state) in test_exit()
156 struct test_state state; in main()
/tools/usb/ffs-aio-example/simple/host_app/
Dtest.c48 struct test_state { struct
59 int test_init(struct test_state *state) in test_init() argument
145 void test_exit(struct test_state *state) in test_exit()
156 struct test_state state; in main()