fix error that ran no tests if no options were passed
authorcaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 May 2013 14:23:07 +0000 (14:23 +0000)
committercaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 2 May 2013 14:23:07 +0000 (14:23 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@8959 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/skia_test.cpp

index 1763e6b..238252d 100644 (file)
@@ -185,7 +185,7 @@ private:
 static bool shouldSkip(const char* testName) {
     int count = FLAGS_match.count();
     size_t testLen = strlen(testName);
-    bool anyExclude = false;
+    bool anyExclude = count == 0;
     for (int index = 0; index < count; ++index) {
         const char* matchName = FLAGS_match[index];
         size_t matchLen = strlen(matchName);