fix error that ran no tests if no options were passed

git-svn-id: http://skia.googlecode.com/svn/trunk@8959 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
caryclark@google.com 2013-05-02 14:23:07 +00:00
parent 4bbc524ca4
commit 89d1827fa0

View 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);