Skip to content

Commit a025817

Browse files
committed
tests: use go clean
The behavoir after `go test -a` is somewhat surprising, so add `go clean`, which seems to actuall bring everything up to date. golang/go#24355 (comment)
1 parent f2c2f79 commit a025817

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ format: earlyoom
8181
clang-format -i *.h *.c
8282

8383
test: earlyoom
84-
# Go does not notice when the C code changes, so we have to
85-
# use `go test -a`. See https://github.com/golang/go/issues/24355 .
86-
cd tests && go test -a -v
84+
# Go does not notice when the C code changes, so we have to
85+
# use `go clean` and `go test -a`.
86+
# See https://github.com/golang/go/issues/24355 .
87+
cd tests && go clean -cache -testcache . && go test -a -v

0 commit comments

Comments
 (0)