summaryrefslogtreecommitdiff
path: root/test/chan/fifo.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/chan/fifo.go')
-rw-r--r--test/chan/fifo.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/chan/fifo.go b/test/chan/fifo.go
index ad53ab655..00a297a60 100644
--- a/test/chan/fifo.go
+++ b/test/chan/fifo.go
@@ -8,6 +8,8 @@
package main
+import "os"
+
const N = 10
func AsynchFifo() {
@@ -18,7 +20,7 @@ func AsynchFifo() {
for i := 0; i < N; i++ {
if <-ch != i {
print("bad receive\n");
- sys.Exit(1);
+ os.Exit(1);
}
}
}