You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/03/20 22:51:09 UTC
svn commit: r1303169 - /incubator/mesos/trunk/src/tests/main.cpp
Author: benh
Date: Tue Mar 20 21:51:08 2012
New Revision: 1303169
URL: http://svn.apache.org/viewvc?rev=1303169&view=rev
Log:
Minor fix for enabling logging during tests (contributed by Vinod Kone).
Modified:
incubator/mesos/trunk/src/tests/main.cpp
Modified: incubator/mesos/trunk/src/tests/main.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/tests/main.cpp?rev=1303169&r1=1303168&r2=1303169&view=diff
==============================================================================
--- incubator/mesos/trunk/src/tests/main.cpp (original)
+++ incubator/mesos/trunk/src/tests/main.cpp Tue Mar 20 21:51:08 2012
@@ -42,7 +42,7 @@ int main(int argc, char** argv)
// Initialize glog.
google::InitGoogleLogging("alltests");
- if (argc == 2 && strcmp("-v", argv[1]) == 0) {
+ if (argc >= 2 && strcmp("-v", argv[1]) == 0) {
google::SetStderrLogging(google::INFO);
}