]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo/testsanitizers: run libfuzzer tests in temp directory
authorCherry Mui <cherryyz@google.com>
Tue, 27 Dec 2022 22:29:28 +0000 (17:29 -0500)
committerCherry Mui <cherryyz@google.com>
Wed, 28 Dec 2022 15:34:23 +0000 (15:34 +0000)
commit9123221ccf3c80c741ead5b6f2e960573b1676b9
treeeab2945141c1cc20cc896ffea7a34734b81c7c42
parente870de9936a7efa42ac1915ff4ffb16017dbc819
misc/cgo/testsanitizers: run libfuzzer tests in temp directory

The libFuzzer generated binary by default writes failure input
into the current directory. Set cmd.Dir to the temporary directory
so it won't write to GOROOT when running the test.

Change-Id: I3e4ce7e3f845be5c9f09511c36e7a9a396eafad2
Reviewed-on: https://go-review.googlesource.com/c/go/+/459556
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
misc/cgo/testsanitizers/libfuzzer_test.go