Skip to content

Commit be04718

Browse files
author
Bryan C. Mills
committed
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>
1 parent 9852b4b commit be04718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/cgo/fortran/test.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ case "$FC" in
2828
;;
2929
esac
3030

31-
if ! $FC helloworld/helloworld.f90 -o main.exe >& /dev/null; then
31+
if ! $FC helloworld/helloworld.f90 -o /dev/null >& /dev/null; then
3232
echo "skipping Fortran test: could not build helloworld.f90 with $FC"
3333
exit 0
3434
fi

0 commit comments

Comments
 (0)