Commit be047188 authored by Bryan C. Mills's avatar Bryan C. Mills

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 9852b4b0
...@@ -28,7 +28,7 @@ case "$FC" in ...@@ -28,7 +28,7 @@ case "$FC" in
;; ;;
esac 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" echo "skipping Fortran test: could not build helloworld.f90 with $FC"
exit 0 exit 0
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment