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

Side by Side Diff: base/test/launcher/test_launcher.cc

Issue 349343003: Increase the test output line limit 50 -> 5000 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/test/launcher/test_launcher.h" 5 #include "base/test/launcher/test_launcher.h"
6 6
7 #if defined(OS_POSIX) 7 #if defined(OS_POSIX)
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #endif 9 #endif
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // the purpose of this timeout, which is 1) to avoid buildbot "no output for 72 // the purpose of this timeout, which is 1) to avoid buildbot "no output for
73 // X seconds" timeout killing the process 2) help communicate status of 73 // X seconds" timeout killing the process 2) help communicate status of
74 // the test launcher to people looking at the output (no output for a long 74 // the test launcher to people looking at the output (no output for a long
75 // time is mysterious and gives no info about what is happening) 3) help 75 // time is mysterious and gives no info about what is happening) 3) help
76 // debugging in case the process hangs anyway. 76 // debugging in case the process hangs anyway.
77 const int kOutputTimeoutSeconds = 15; 77 const int kOutputTimeoutSeconds = 15;
78 78
79 // Limit of output snippet lines when printing to stdout. 79 // Limit of output snippet lines when printing to stdout.
80 // Avoids flooding the logs with amount of output that gums up 80 // Avoids flooding the logs with amount of output that gums up
81 // the infrastructure. 81 // the infrastructure.
82 const size_t kOutputSnippetLinesLimit = 50; 82 const size_t kOutputSnippetLinesLimit = 5000;
83 83
84 // Set of live launch test processes with corresponding lock (it is allowed 84 // Set of live launch test processes with corresponding lock (it is allowed
85 // for callers to launch processes on different threads). 85 // for callers to launch processes on different threads).
86 LazyInstance<std::map<ProcessHandle, CommandLine> > g_live_processes 86 LazyInstance<std::map<ProcessHandle, CommandLine> > g_live_processes
87 = LAZY_INSTANCE_INITIALIZER; 87 = LAZY_INSTANCE_INITIALIZER;
88 LazyInstance<Lock> g_live_processes_lock = LAZY_INSTANCE_INITIALIZER; 88 LazyInstance<Lock> g_live_processes_lock = LAZY_INSTANCE_INITIALIZER;
89 89
90 #if defined(OS_POSIX) 90 #if defined(OS_POSIX)
91 // Self-pipe that makes it possible to do complex shutdown handling 91 // Self-pipe that makes it possible to do complex shutdown handling
92 // outside of the signal handler. 92 // outside of the signal handler.
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 1089
1090 g_live_processes.Get().erase(process_handle); 1090 g_live_processes.Get().erase(process_handle);
1091 } 1091 }
1092 1092
1093 base::CloseProcessHandle(process_handle); 1093 base::CloseProcessHandle(process_handle);
1094 1094
1095 return exit_code; 1095 return exit_code;
1096 } 1096 }
1097 1097
1098 } // namespace base 1098 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698