Lines Matching refs:test_name
43 static void error_report(struct error *err, const char *test_name) in error_report() argument
47 ksft_exit_fail_msg("%s test: Fatal: %s\n", test_name, err->msg); in error_report()
52 ksft_test_result_error("%s test: %s\n", test_name, err->msg); in error_report()
57 ksft_test_result_skip("%s test: %s\n", test_name, err->msg); in error_report()
62 test_name, err->msg); in error_report()
66 ksft_test_result_pass("%s test: Passed\n", test_name); in error_report()
71 test_name, err->code, err->msg); in error_report()
76 static inline int error_check(struct error *err, const char *test_name) in error_check() argument
80 error_report(err, test_name); in error_check()
257 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local
261 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
269 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
283 error_report(&err, test_name); in test_pidfd_fdinfo_nspid()
290 const char *test_name = "pidfd check fdinfo for dead process"; in test_pidfd_dead_fdinfo() local
294 error_check(&err, test_name); in test_pidfd_dead_fdinfo()
300 error_report(&err, test_name); in test_pidfd_dead_fdinfo()