diff options
author | Shiz <hi@shiz.me> | 2017-05-12 21:35:25 +0200 |
---|---|---|
committer | Shiz <hi@shiz.me> | 2017-05-12 21:35:25 +0200 |
commit | cbc4d878e9cefa5e0913e61bd41caac2c723e5ed (patch) | |
tree | ec2b26daed86d0d863ded80cb099a14c03ad15b1 /community/syncthing/only-test-with-race-when-provided.patch | |
parent | de7df9fd249f488ec141ce01c871912581cae506 (diff) | |
download | aports-cbc4d878e9cefa5e0913e61bd41caac2c723e5ed.tar.bz2 aports-cbc4d878e9cefa5e0913e61bd41caac2c723e5ed.tar.xz |
community/syncthing: fix tests
Diffstat (limited to 'community/syncthing/only-test-with-race-when-provided.patch')
-rw-r--r-- | community/syncthing/only-test-with-race-when-provided.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/community/syncthing/only-test-with-race-when-provided.patch b/community/syncthing/only-test-with-race-when-provided.patch new file mode 100644 index 0000000000..5b8e4c7f4b --- /dev/null +++ b/community/syncthing/only-test-with-race-when-provided.patch @@ -0,0 +1,14 @@ +Only use -race when -race is also given to build.go on the command line: +x86_64 musl targets do not support the Go race runtime. +diff -Nru a/build.go b/build.go +--- a/build.go 2017-04-15 07:38:23.000000000 +0000 ++++ b/build.go 2017-05-12 19:26:36.982569748 +0000 +@@ -379,7 +379,7 @@ + func test(pkgs ...string) { + lazyRebuildAssets() + +- useRace := runtime.GOARCH == "amd64" ++ useRace := race && runtime.GOARCH == "amd64" + switch runtime.GOOS { + case "darwin", "linux", "freebsd", "windows": + default: |