aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/testdata')
-rw-r--r--src/runtime/testdata/testprog/lockosthread.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/testdata/testprog/lockosthread.go b/src/runtime/testdata/testprog/lockosthread.go
index e9d7fdbc44..90d98e4972 100644
--- a/src/runtime/testdata/testprog/lockosthread.go
+++ b/src/runtime/testdata/testprog/lockosthread.go
@@ -155,7 +155,7 @@ func LockOSThreadAvoidsStatePropagation() {
}
// Chdir to somewhere else on this thread.
// On systems other than Linux, this is a no-op.
- if err := chdir("/tmp"); err != nil {
+ if err := chdir(os.TempDir()); err != nil {
println("failed to chdir:", err.Error())
os.Exit(1)
}