]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testcshared: wait up to 1 second in main2.c
authorIan Lance Taylor <iant@golang.org>
Tue, 20 Dec 2016 03:46:54 +0000 (19:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Dec 2016 05:06:55 +0000 (05:06 +0000)
Wait longer in case the system is heavily loaded.

Fixes #18324.

Change-Id: If9a6da1cf32d0321302d244ee24fb3f80e54489d
Reviewed-on: https://go-review.googlesource.com/34653
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/testcshared/main2.c

index 9752006f79e71fba94cfae856f43d5005d42178e..6e8bf141cafa81ea340b12112395d3d163518421 100644 (file)
@@ -21,7 +21,7 @@ int main(void) {
 
   // The descriptor will be initialized in a thread, so we have to
   // give a chance to get opened.
-  for (i = 0; i < 100; i++) {
+  for (i = 0; i < 1000; i++) {
     n = read(fd, buf, sizeof buf);
     if (n >= 0)
       break;