-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: 3 cmd/go tests (>8s) made as non-short scripts
* TestAtomicCoverpkgAll -> Script/cover_atomic_pkgall.txt and make it * non-short * TestCoverpkgAllRuntime -> Script/cover_pkgall_runtime.txt and make it * non-short * TestCpuprofileTwice -> Script/cpu_profile_twice.txt and make it * non-short * TestGoTestMainTwice -> make it non-short Updates #26472 Change-Id: I24f3d4c2a8b6e317adb369a1b1426e693f9571ed Reviewed-on: https://go-review.googlesource.com/126636 Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
- Loading branch information
1 parent
a685a8d
commit 15c106d
Showing
4 changed files
with
67 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[short] skip | ||
|
||
go test -coverpkg=all -covermode=atomic x | ||
stdout ok[\s\S]+?coverage | ||
|
||
[!race] stop | ||
|
||
go test -coverpkg=all -race x | ||
stdout ok[\s\S]+?coverage | ||
|
||
-- x/x.go -- | ||
package x | ||
|
||
import _ "sync/atomic" | ||
|
||
func F() {} | ||
|
||
-- x/x_test.go -- | ||
package x | ||
|
||
import "testing" | ||
|
||
func TestF(t *testing.T) { F() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Issue 23882 | ||
|
||
[short] skip | ||
|
||
go test -coverpkg=all x | ||
stdout ok[\s\S]+?coverage | ||
|
||
[!race] stop | ||
|
||
go test -coverpkg=all -race x | ||
stdout ok[\s\S]+?coverage | ||
|
||
-- x/x.go -- | ||
package x | ||
import _ "runtime" | ||
func F() {} | ||
|
||
-- x/x_test.go -- | ||
package x | ||
import "testing" | ||
func TestF(t *testing.T) { F() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Issue 23150 | ||
|
||
[short] skip | ||
|
||
go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x | ||
rm $WORK/cpu_profile_twice.out | ||
|
||
go test -o=$WORK/x.test -cpuprofile=$WORK/cpu_profile_twice.out x | ||
exists $WORK/cpu_profile_twice.out | ||
|
||
|
||
-- x/x_test.go -- | ||
package x_test | ||
import ( | ||
"testing" | ||
"time" | ||
) | ||
func TestSleep(t *testing.T) { | ||
time.Sleep(10 * time.Millisecond) | ||
} |