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()
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()
255 const char *test_name = "pidfd check for NSpid in fdinfo"; in test_pidfd_fdinfo_nspid() local
259 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
267 error_check(&err, test_name); in test_pidfd_fdinfo_nspid()
281 error_report(&err, test_name); in test_pidfd_fdinfo_nspid()
288 const char *test_name = "pidfd check fdinfo for dead process"; in test_pidfd_dead_fdinfo() local
292 error_check(&err, test_name); in test_pidfd_dead_fdinfo()
298 error_report(&err, test_name); in test_pidfd_dead_fdinfo()