Lines Matching refs:test_name
42 static void error_report(struct error *err, const char *test_name) in error_report() argument
46 ksft_exit_fail_msg("%s test: Fatal: %s\n", test_name, err->msg); in error_report()
51 ksft_test_result_error("%s test: %s\n", test_name, err->msg); in error_report()
56 ksft_test_result_skip("%s test: %s\n", test_name, err->msg); in error_report()
61 test_name, err->msg); in error_report()
65 ksft_test_result_pass("%s test: Passed\n", test_name); in error_report()
70 test_name, err->code, err->msg); in error_report()
75 static inline int error_check(struct error *err, const char *test_name) in error_check() argument
79 error_report(err, test_name); in error_check()
256 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local
260 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
268 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
282 error_report(&err, test_name); in test_pidfd_fdinfo_nspid()
289 const char *test_name = "pidfd check fdinfo for dead process"; in test_pidfd_dead_fdinfo() local
293 error_check(&err, test_name); in test_pidfd_dead_fdinfo()
299 error_report(&err, test_name); in test_pidfd_dead_fdinfo()