summaryrefslogtreecommitdiff
path: root/test/ken/chan.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/ken/chan.go')
-rw-r--r--test/ken/chan.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/ken/chan.go b/test/ken/chan.go
index ba1337587..a272c2bbc 100644
--- a/test/ken/chan.go
+++ b/test/ken/chan.go
@@ -88,7 +88,7 @@ send(c *Chan)
nproc++; // total goroutines running
for {
for r:=nrand(10); r>=0; r-- {
- sys.gosched();
+ sys.Gosched();
}
c.sc <- c.sv;
if c.send() {
@@ -119,7 +119,7 @@ recv(c *Chan)
nproc++; // total goroutines running
for {
for r:=nrand(10); r>=0; r-- {
- sys.gosched();
+ sys.Gosched();
}
v = <-c.rc;
if c.recv(v) {
@@ -148,7 +148,7 @@ sel(r0,r1,r2,r3, s0,s1,s2,s3 *Chan)
for {
for r:=nrand(5); r>=0; r-- {
- sys.gosched();
+ sys.Gosched();
}
select {
@@ -270,9 +270,9 @@ test6(c int)
func
wait()
{
- sys.gosched();
+ sys.Gosched();
for nproc != 0 {
- sys.gosched();
+ sys.Gosched();
}
}
@@ -321,7 +321,7 @@ main()
if tots != t || totr != t {
print("tots=", tots, " totr=", totr, " sb=", t, "\n");
- sys.exit(1);
+ sys.Exit(1);
}
- sys.exit(0);
+ sys.Exit(0);
}