]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo/testcshared: handle unsuffixed dlltool path
authorThan McIntosh <thanm@google.com>
Thu, 17 Nov 2022 20:29:27 +0000 (15:29 -0500)
committerThan McIntosh <thanm@google.com>
Sat, 19 Nov 2022 23:10:07 +0000 (23:10 +0000)
commit771a98d6b19c9ca4bbd3fbeba03d7d512f77c166
treebfc1235970d15cae6a10b6f0b848e650cf3b28d4
parentbda0235466a9e2e26332f9a2646678ccdc5edaa9
misc/cgo/testcshared: handle unsuffixed dlltool path

Adapt the testcshared tests to handle the case where the path output
by invoking

  gcc -print-prog-name=dlltool

is a path lacking the final ".exe" suffix (this seems to be what clang
is doing); tack it on before using if this is the case.

Updates #35006.
Updates #53540.

Change-Id: I04fb7b9fc90677880b1ced4a4ad2a8867a3f5f86
Reviewed-on: https://go-review.googlesource.com/c/go/+/451816
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
misc/cgo/testcshared/cshared_test.go