File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -757,7 +757,7 @@ func TestFlock(t *testing.T) {
757
757
if err != nil {
758
758
t .Fatalf ("Flock: %s" , err .Error ())
759
759
}
760
- cmd := exec .Command (os .Args [0 ], "-test.run=TestFlock" , f .Name ())
760
+ cmd := exec .Command (os .Args [0 ], "-test.run=^ TestFlock$ " , f .Name ())
761
761
cmd .Env = append (os .Environ (), "GO_WANT_HELPER_PROCESS=1" )
762
762
out , err := cmd .CombinedOutput ()
763
763
if len (out ) > 0 || err != nil {
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ func TestIsWindowsServiceWhenParentExits(t *testing.T) {
182
182
// in parent process
183
183
184
184
// Start the child and exit quickly.
185
- child := exec .Command (os .Args [0 ], "-test.run=TestIsWindowsServiceWhenParentExits" )
185
+ child := exec .Command (os .Args [0 ], "-test.run=^ TestIsWindowsServiceWhenParentExits$ " )
186
186
child .Env = append (os .Environ (), "GO_WANT_HELPER_PROCESS=child" )
187
187
err := child .Start ()
188
188
if err != nil {
@@ -221,7 +221,7 @@ func TestIsWindowsServiceWhenParentExits(t *testing.T) {
221
221
for i := 0 ; i < 10 ; i ++ {
222
222
childDumpPath := filepath .Join (t .TempDir (), "issvc.txt" )
223
223
224
- parent := exec .Command (os .Args [0 ], "-test.run=TestIsWindowsServiceWhenParentExits" )
224
+ parent := exec .Command (os .Args [0 ], "-test.run=^ TestIsWindowsServiceWhenParentExits$ " )
225
225
parent .Env = append (os .Environ (),
226
226
"GO_WANT_HELPER_PROCESS=parent" ,
227
227
"GO_WANT_HELPER_PROCESS_FILE=" + childDumpPath )
You can’t perform that action at this time.
0 commit comments