diff options
| author | Shulhan <m.shulhan@gmail.com> | 2024-02-07 13:10:08 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2026-02-03 18:04:31 +0700 |
| commit | 3b913562dd71bec7d9e5bb50c3834ccc8c3dd3f9 (patch) | |
| tree | 240aca8ac865de0a7480b0742f824d308463bace /src/cmd | |
| parent | c1b21b3cccfeed8f8f6762410479ac03864cd30c (diff) | |
| download | go-3b913562dd71bec7d9e5bb50c3834ccc8c3dd3f9.tar.xz | |
testing: print the counter if its greater than 1
When test run with "-count=Y" and Y is greater that 1, print a line
to indicated the current round of test as "### X/Y".
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/go/testdata/script/test_regexps.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/test_regexps.txt b/src/cmd/go/testdata/script/test_regexps.txt index 2f33080a00..b904114a4d 100644 --- a/src/cmd/go/testdata/script/test_regexps.txt +++ b/src/cmd/go/testdata/script/test_regexps.txt @@ -3,16 +3,22 @@ go test -cpu=1 -run=X/Y -bench=X/Y -count=2 -v testregexp # Test the following: # TestX is run, twice +stdout -count=1 '^### 1/2$' stdout -count=2 '^=== RUN TestX$' stdout -count=2 '^ x_test.go:6: LOG: X running$' +stdout -count=1 '^### 2/2$' # TestX/Y is run, twice +stdout -count=1 '^### 1/2$' stdout -count=2 '^=== RUN TestX/Y$' stdout -count=2 '^ x_test.go:8: LOG: Y running$' +stdout -count=1 '^### 2/2$' # TestXX is run, twice +stdout -count=1 '^### 1/2' stdout -count=2 '^=== RUN TestXX$' stdout -count=2 '^ z_test.go:10: LOG: XX running' +stdout -count=1 '^### 2/2' # TestZ is not run ! stdout '^=== RUN TestZ$' |
