@@ -424,10 +424,12 @@ func optionsFromOSARCH(osarch string, sema chan struct{}) compileopts.Options {
424424}
425425
426426func runTest (name string , options compileopts.Options , t * testing.T , cmdArgs , environmentVars []string ) {
427+ t .Helper ()
427428 runTestWithConfig (name , t , options , cmdArgs , environmentVars )
428429}
429430
430431func runTestWithConfig (name string , t * testing.T , options compileopts.Options , cmdArgs , environmentVars []string ) {
432+ t .Helper ()
431433 // Get the expected output for this test.
432434 // Note: not using filepath.Join as it strips the path separator at the end
433435 // of the path.
@@ -876,6 +878,7 @@ func TestWasmExit(t *testing.T) {
876878
877879// Check whether the output of a test equals the expected output.
878880func checkOutput (t * testing.T , filename string , actual []byte ) {
881+ t .Helper ()
879882 expectedOutput , err := os .ReadFile (filename )
880883 if err != nil {
881884 t .Fatal ("could not read output file:" , err )
@@ -884,6 +887,7 @@ func checkOutput(t *testing.T, filename string, actual []byte) {
884887}
885888
886889func checkOutputData (t * testing.T , expectedOutput , actual []byte ) {
890+ t .Helper ()
887891 expectedOutput = bytes .ReplaceAll (expectedOutput , []byte ("\r \n " ), []byte ("\n " ))
888892 actual = bytes .ReplaceAll (actual , []byte ("\r \n " ), []byte ("\n " ))
889893
0 commit comments