aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_pipe2_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/export_pipe2_test.go')
-rw-r--r--src/runtime/export_pipe2_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/runtime/export_pipe2_test.go b/src/runtime/export_pipe2_test.go
index bdf39c60df..8d49009b43 100644
--- a/src/runtime/export_pipe2_test.go
+++ b/src/runtime/export_pipe2_test.go
@@ -7,9 +7,5 @@
package runtime
func Pipe() (r, w int32, errno int32) {
- r, w, errno = pipe2(0)
- if errno == _ENOSYS {
- return pipe()
- }
- return r, w, errno
+ return pipe2(0)
}