Lines Matching refs:test
48 const struct noexec_test *test = current_noexec_test;
55 if (test == NULL) {
61 expected_si = page_base + test->expected_si_ofs;
69 expected_pc = page_base + test->expected_pc_ofs;
76 if (arg != test->expected_arg) {
77 printf("[ FAILED ] wrong arg (%d != %d)\n", arg, test->expected_arg);
87 static void test_noexec_1(const struct noexec_test *test)
89 void *start = page_base + test->page_ofs;
90 void (*fn)(int arg) = page_base + test->entry_ofs;
92 memcpy(start, test->test_code, test->test_len);
93 arch_flush(start, test->test_len);
95 /* Trigger TB creation in order to test invalidation. */
103 current_noexec_test = test;
130 struct noexec_test *test = &tests[i];
132 printf("[ RUN ] %s\n", test->name);
133 test_noexec_1(test);