From: Ian Lance Taylor Date: Mon, 29 Feb 2016 06:06:11 +0000 (-0800) Subject: misc/cgo/testsanitizers: report stderr if go run tsan*.go fails X-Git-Tag: go1.7beta1~1644 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1df5183f4c6f90ab3ea6fc4a928d2e7d7f55ce3d;p=gostls13.git misc/cgo/testsanitizers: report stderr if go run tsan*.go fails Update #14559. Change-Id: I8894f8e16902685f55a21d902199fbe0905f0558 Reviewed-on: https://go-review.googlesource.com/20050 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Dmitry Vyukov --- diff --git a/misc/cgo/testsanitizers/test.bash b/misc/cgo/testsanitizers/test.bash index 69caa39b15..a1f3a06411 100755 --- a/misc/cgo/testsanitizers/test.bash +++ b/misc/cgo/testsanitizers/test.bash @@ -103,6 +103,7 @@ if test "$tsan" = "yes"; then err=${TMPDIR}/tsanerr$$.out if ! go run tsan.go 2>$err; then + cat $err echo "FAIL: tsan" status=1 elif grep -i warning $err >/dev/null 2>&1; then @@ -112,6 +113,7 @@ if test "$tsan" = "yes"; then fi if ! go run tsan2.go 2>$err; then + cat $err echo "FAIL: tsan2" status=1 elif grep -i warning $err >/dev/null 2>&1; then