]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testsanitizers: fix check for existence of clang
authorMohit Agarwal <mohit@sdf.org>
Mon, 9 Nov 2015 20:22:52 +0000 (01:52 +0530)
committerIan Lance Taylor <iant@golang.org>
Tue, 10 Nov 2015 03:58:52 +0000 (03:58 +0000)
commit8e848ba65310eb0417a01907a3ac39fdc84782ab
treef1a3604bda012dca4202a32b2dd59aa94946a32f
parent6c967c0ad2a23c8824d9be8fef18aaf00d2ff0f4
misc/cgo/testsanitizers: fix check for existence of clang

The current mechanism fails if clang cannot be executed by the current
user.  Using the `-x` operator for `test` return TRUE if the file is
executable by the user.

Change-Id: I0f3c8dc3880c1ce5a8a833ff3109eb96853184af
Reviewed-on: https://go-review.googlesource.com/16752
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testsanitizers/test.bash