@@ -334,7 +334,7 @@ void ztest_test_fail(void)
334334 case TEST_PHASE_AFTER :
335335 case TEST_PHASE_TEARDOWN :
336336 case TEST_PHASE_FRAMEWORK :
337- PRINT (" ERROR: cannot fail in test '%s()', bailing\n" ,
337+ PRINT (" ERROR: cannot fail in test phase '%s()', bailing\n" ,
338338 get_friendly_phase_name (phase ));
339339 longjmp (stack_fail , 1 );
340340 }
@@ -345,7 +345,8 @@ void ztest_test_pass(void)
345345 if (phase == TEST_PHASE_TEST ) {
346346 longjmp (test_pass , 1 );
347347 }
348- PRINT (" ERROR: cannot pass in test '%s()', bailing\n" , get_friendly_phase_name (phase ));
348+ PRINT (" ERROR: cannot pass in test phase '%s()', bailing\n" ,
349+ get_friendly_phase_name (phase ));
349350 longjmp (stack_fail , 1 );
350351}
351352
@@ -357,7 +358,7 @@ void ztest_test_skip(void)
357358 case TEST_PHASE_TEST :
358359 longjmp (test_skip , 1 );
359360 default :
360- PRINT (" ERROR: cannot skip in test '%s()', bailing\n" ,
361+ PRINT (" ERROR: cannot skip in test phase '%s()', bailing\n" ,
361362 get_friendly_phase_name (phase ));
362363 longjmp (stack_fail , 1 );
363364 }
@@ -448,7 +449,7 @@ void ztest_test_fail(void)
448449 test_finalize ();
449450 break ;
450451 default :
451- PRINT (" ERROR: cannot fail in test '%s()', bailing\n" ,
452+ PRINT (" ERROR: cannot fail in test phase '%s()', bailing\n" ,
452453 get_friendly_phase_name (phase ));
453454 test_status = ZTEST_STATUS_CRITICAL_ERROR ;
454455 break ;
@@ -463,7 +464,7 @@ void ztest_test_pass(void)
463464 test_finalize ();
464465 break ;
465466 default :
466- PRINT (" ERROR: cannot pass in test '%s()', bailing\n" ,
467+ PRINT (" ERROR: cannot pass in test phase '%s()', bailing\n" ,
467468 get_friendly_phase_name (phase ));
468469 test_status = ZTEST_STATUS_CRITICAL_ERROR ;
469470 if (phase == TEST_PHASE_BEFORE ) {
@@ -484,7 +485,7 @@ void ztest_test_skip(void)
484485 test_finalize ();
485486 break ;
486487 default :
487- PRINT (" ERROR: cannot skip in test '%s()', bailing\n" ,
488+ PRINT (" ERROR: cannot skip in test phase '%s()', bailing\n" ,
488489 get_friendly_phase_name (phase ));
489490 test_status = ZTEST_STATUS_CRITICAL_ERROR ;
490491 break ;
0 commit comments