@@ -424,10 +424,12 @@ func optionsFromOSARCH(osarch string, sema chan struct{}) compileopts.Options {
424
424
}
425
425
426
426
func runTest (name string , options compileopts.Options , t * testing.T , cmdArgs , environmentVars []string ) {
427
+ t .Helper ()
427
428
runTestWithConfig (name , t , options , cmdArgs , environmentVars )
428
429
}
429
430
430
431
func runTestWithConfig (name string , t * testing.T , options compileopts.Options , cmdArgs , environmentVars []string ) {
432
+ t .Helper ()
431
433
// Get the expected output for this test.
432
434
// Note: not using filepath.Join as it strips the path separator at the end
433
435
// of the path.
@@ -876,6 +878,7 @@ func TestWasmExit(t *testing.T) {
876
878
877
879
// Check whether the output of a test equals the expected output.
878
880
func checkOutput (t * testing.T , filename string , actual []byte ) {
881
+ t .Helper ()
879
882
expectedOutput , err := os .ReadFile (filename )
880
883
if err != nil {
881
884
t .Fatal ("could not read output file:" , err )
@@ -884,6 +887,7 @@ func checkOutput(t *testing.T, filename string, actual []byte) {
884
887
}
885
888
886
889
func checkOutputData (t * testing.T , expectedOutput , actual []byte ) {
890
+ t .Helper ()
887
891
expectedOutput = bytes .ReplaceAll (expectedOutput , []byte ("\r \n " ), []byte ("\n " ))
888
892
actual = bytes .ReplaceAll (actual , []byte ("\r \n " ), []byte ("\n " ))
889
893
0 commit comments