Lines Matching refs:test_name
41 static void error_report(struct error *err, const char *test_name) in error_report() argument
45 ksft_exit_fail_msg("%s test: Fatal: %s\n", test_name, err->msg); in error_report()
50 ksft_test_result_error("%s test: %s\n", test_name, err->msg); in error_report()
55 ksft_test_result_skip("%s test: %s\n", test_name, err->msg); in error_report()
60 test_name, err->msg); in error_report()
69 test_name, err->code, err->msg); in error_report()
74 static inline int error_check(struct error *err, const char *test_name) in error_check() argument
78 error_report(err, test_name); in error_check()
241 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local
245 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
253 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
267 error_report(&err, test_name); in test_pidfd_fdinfo_nspid()
274 const char *test_name = "pidfd check fdinfo for dead process"; in test_pidfd_dead_fdinfo() local
278 error_check(&err, test_name); in test_pidfd_dead_fdinfo()
284 error_report(&err, test_name); in test_pidfd_dead_fdinfo()