diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-10 22:43:34 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-10 22:43:34 +0200 |
| commit | 2ec81876eb59bb3e7c544774aa222988c1f574c4 (patch) | |
| tree | b6eca032fe3071a17ad580d8e178c8383818a02a /test | |
| parent | d9f40f59c9f14bef7f87c11da7494f7dcf1457b4 (diff) | |
| download | nissy-core-2ec81876eb59bb3e7c544774aa222988c1f574c4.tar.gz nissy-core-2ec81876eb59bb3e7c544774aa222988c1f574c4.zip | |
Fix build errors on OpenBSD
Diffstat (limited to '')
| -rwxr-xr-x | test/test.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh index 3adee3a..8e50cf5 100755 --- a/test/test.sh +++ b/test/test.sh | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | detectsan() { cc -fsanitize=$1 -dM -E -x c - </dev/null | grep "SANITIZE"; } | 3 | detectsan() { |
| 4 | cc -fsanitize=$1 -dM -E -x c - </dev/null 2>/dev/null \ | ||
| 5 | | grep "SANITIZE" | ||
| 6 | } | ||
| 4 | 7 | ||
| 5 | re="${TEST:-$@}" | 8 | re="${TEST:-$@}" |
| 6 | 9 | ||
