Add testcase for failed and skipped benchmarks

This commit is contained in:
Joël Stemmer 2022-03-31 00:46:01 +01:00
parent f355bc72cc
commit 44187d369e

15
testdata/036-benchfail.txt vendored Normal file
View File

@ -0,0 +1,15 @@
goos: linux
goarch: amd64
pkg: package/name/benchfail
BenchmarkError
bench_test.go:6: error message
--- FAIL: BenchmarkError
BenchmarkFatal
bench_test.go:10: fatal message
--- FAIL: BenchmarkFatal
BenchmarkSkip
bench_test.go:14: skip message
--- SKIP: BenchmarkSkip
FAIL
exit status 1
FAIL package/name/benchfail 0.002s