diff --git a/unix/syscall_linux_test.go b/unix/syscall_linux_test.go index 3d2805bb..3c3bd816 100644 --- a/unix/syscall_linux_test.go +++ b/unix/syscall_linux_test.go @@ -52,6 +52,7 @@ func TestPpoll(t *testing.T) { t.Skip("mkfifo syscall is not available on android, skipping test") } + defer chtmpdir(t)() f, cleanup := mktmpfifo(t) defer cleanup() diff --git a/unix/syscall_unix_test.go b/unix/syscall_unix_test.go index ab65ce65..7adc3a24 100644 --- a/unix/syscall_unix_test.go +++ b/unix/syscall_unix_test.go @@ -426,6 +426,7 @@ func TestPoll(t *testing.T) { t.Skip("mkfifo syscall is not available on android and iOS, skipping test") } + defer chtmpdir(t)() f, cleanup := mktmpfifo(t) defer cleanup()