mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Adding code to make stdout and stderr unbuffered, depending on the MOZ_UNBUFFERED_STDIO environment variable. This is needed for tests to run correctly.
This commit is contained in:
parent
9a5b9b5994
commit
14d3a7e5dd
@ -1,6 +1,17 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
static void SetupRuntimeOptions(int argc, const char *argv[])
|
||||
{
|
||||
if (getenv("MOZ_UNBUFFERED_STDIO")) {
|
||||
printf("stdout and stderr unbuffered\n");
|
||||
setbuf(stdout, 0);
|
||||
setbuf(stderr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
SetupRuntimeOptions(argc, argv);
|
||||
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
||||
|
@ -1,6 +1,17 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
static void SetupRuntimeOptions(int argc, const char *argv[])
|
||||
{
|
||||
if (getenv("MOZ_UNBUFFERED_STDIO")) {
|
||||
printf("stdout and stderr unbuffered\n");
|
||||
setbuf(stdout, 0);
|
||||
setbuf(stderr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
SetupRuntimeOptions(argc, argv);
|
||||
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
||||
|
@ -1,6 +1,17 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
static void SetupRuntimeOptions(int argc, const char *argv[])
|
||||
{
|
||||
if (getenv("MOZ_UNBUFFERED_STDIO")) {
|
||||
printf("stdout and stderr unbuffered\n");
|
||||
setbuf(stdout, 0);
|
||||
setbuf(stderr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
SetupRuntimeOptions(argc, argv);
|
||||
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
||||
|
@ -1,6 +1,17 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
static void SetupRuntimeOptions(int argc, const char *argv[])
|
||||
{
|
||||
if (getenv("MOZ_UNBUFFERED_STDIO")) {
|
||||
printf("stdout and stderr unbuffered\n");
|
||||
setbuf(stdout, 0);
|
||||
setbuf(stderr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
SetupRuntimeOptions(argc, argv);
|
||||
|
||||
return NSApplicationMain(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user