Don't generate quitquitquit files when running unit tests.
BUG=none
TEST=unit tests
Change-Id: I6eb69fcac53c257390b640767a3f547478f792b2
Review URL: http://codereview.chromium.org/3199015
diff --git a/subprocess_unittest.cc b/subprocess_unittest.cc
index 65e56e6..10dccbe 100644
--- a/subprocess_unittest.cc
+++ b/subprocess_unittest.cc
@@ -94,9 +94,9 @@
if (cancel_test_data->spawned && !Subprocess::Get().SubprocessInFlight()) {
// tear down the sub process
printf("tear down time\n");
- int status =
- System(StringPrintf("wget http://127.0.0.1:%d/quitquitquit",
- kLocalHttpPort));
+ int status = System(
+ StringPrintf("wget -O /dev/null http://127.0.0.1:%d/quitquitquit",
+ kLocalHttpPort));
EXPECT_NE(-1, status) << "system() failed";
EXPECT_TRUE(WIFEXITED(status))
<< "command failed to run or died abnormally";