Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1369)

Unified Diff: subprocess_unittest.cc

Issue 3199015: Don't generate quitquitquit files when running unit tests. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: save one line Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .gitignore ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: subprocess_unittest.cc
diff --git a/subprocess_unittest.cc b/subprocess_unittest.cc
index 65e56e6ca431d17cf40e218d3a1e9b15cc66343f..10dccbe559f81f395adefeef6da631888cfcd65e 100644
--- a/subprocess_unittest.cc
+++ b/subprocess_unittest.cc
@@ -94,9 +94,9 @@ gboolean ExitWhenDone(gpointer data) {
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";
« no previous file with comments | « .gitignore ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698