Bug 370028 - Unbuffer stdout in xpcshell so that its output during unit tests is in execution order. r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@220079 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -964,6 +964,10 @@ main(int argc, char **argv, char **envp)
|
||||
int result;
|
||||
nsresult rv;
|
||||
|
||||
// unbuffer stdout so that output is in the correct order; note that stderr
|
||||
// is unbuffered by default
|
||||
setbuf(stdout, 0);
|
||||
|
||||
gErrFile = stderr;
|
||||
gOutFile = stdout;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user