aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata/testprogcgo/lockosthread.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/testdata/testprogcgo/lockosthread.go')
-rw-r--r--src/runtime/testdata/testprogcgo/lockosthread.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runtime/testdata/testprogcgo/lockosthread.go b/src/runtime/testdata/testprogcgo/lockosthread.go
index 8fcea35f52..e6dce36fb3 100644
--- a/src/runtime/testdata/testprogcgo/lockosthread.go
+++ b/src/runtime/testdata/testprogcgo/lockosthread.go
@@ -94,7 +94,7 @@ func LockOSThreadAlt() {
// Exit with the thread locked.
}()
<-ready
- for i := 0; i < 100; i++ {
+ for {
time.Sleep(1 * time.Millisecond)
// Check that this goroutine is running on a different thread.
self := C.pthread_self()
@@ -107,6 +107,4 @@ func LockOSThreadAlt() {
return
}
}
- println("sub thread still running")
- os.Exit(1)
}