Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fix Travis Test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Feb 25, 2016
1 parent e9eaf69 commit f00b52f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/TravisTest.php
Expand Up @@ -25,13 +25,17 @@
2 => ["pipe", "w"] 2 => ["pipe", "w"]
], $pipes); ], $pipes);


if(!is_resource($server)){
die('Failed to create process');
}

fwrite($pipes[0], "version\nmakeserver\nstop\n\n"); fwrite($pipes[0], "version\nmakeserver\nstop\n\n");
fclose($pipes[0]);


while(!feof($pipes[1])){ while(!feof($pipes[1])){
echo fgets($pipes[1]); echo fgets($pipes[1]);
} }


fclose($pipes[0]);
fclose($pipes[1]); fclose($pipes[1]);
fclose($pipes[2]); fclose($pipes[2]);


Expand All @@ -42,4 +46,4 @@
exit(1); exit(1);
}else{ }else{
exit(0); exit(0);
} }

0 comments on commit f00b52f

Please sign in to comment.