aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-11-20 17:04:35 -0500
committerBryan C. Mills <bcmills@google.com>2019-11-20 22:37:23 +0000
commitbe0471880d128f7c98efec28c0f3114075e74918 (patch)
tree98c3938acafcde05c40fd4234c3d79a65b592f65 /misc
parent9852b4b093163c3d7bc28a2917f90eb297bbaa2e (diff)
downloadgo-be0471880d128f7c98efec28c0f3114075e74918.tar.gz
go-be0471880d128f7c98efec28c0f3114075e74918.zip
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 <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/cgo/fortran/test.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/fortran/test.bash b/misc/cgo/fortran/test.bash
index 9498da0208..2b61730815 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