From be0471880d128f7c98efec28c0f3114075e74918 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Wed, 20 Nov 2019 17:04:35 -0500 Subject: [PATCH] misc/cgo/fortran: avoid writing to $PWD The bash script that drives this test needs to know whether the fortran compiler works, but it doesn't actually care about the generated binary. Write that binary to /dev/null. Updates #28387 Updates #30316 Change-Id: I4f86da1aeb939fc205f467511fc69235a6a9af26 Reviewed-on: https://go-review.googlesource.com/c/go/+/208124 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- misc/cgo/fortran/test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cgo/fortran/test.bash b/misc/cgo/fortran/test.bash index 9498da0208f..2b61730815f 100755 --- a/misc/cgo/fortran/test.bash +++ b/misc/cgo/fortran/test.bash @@ -28,7 +28,7 @@ case "$FC" in ;; esac -if ! $FC helloworld/helloworld.f90 -o main.exe >& /dev/null; then +if ! $FC helloworld/helloworld.f90 -o /dev/null >& /dev/null; then echo "skipping Fortran test: could not build helloworld.f90 with $FC" exit 0 fi