mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-30 06:40:50 +00:00
Conditionally enable test -race when supported on the OS.
This commit is contained in:
parent
9ca2afa12c
commit
7df9db2eb2
4
Makefile
4
Makefile
@ -289,7 +289,9 @@ test:
|
||||
env CGO_ENABLED=1 $(GO) test -short ./...
|
||||
|
||||
test_race:
|
||||
env CGO_ENABLED=1 $(GO) test -short -race -bench=.* -benchtime=.2s ./...
|
||||
$(GO) test -race; if test $$? -ne 2; then \
|
||||
env CGO_ENABLED=1 $(GO) test -short -race -bench=.* -benchtime=.2s ./... ;\
|
||||
fi
|
||||
|
||||
clean:
|
||||
rm -rf ./bin/
|
||||
|
Loading…
Reference in New Issue
Block a user