| Index: tests/skia_test.cpp
|
| diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
|
| index a2f5e9c47b03df09b04862d6da8dc11b186f1a40..7d22ff69acbb541956e8815fae1b977351283816 100644
|
| --- a/tests/skia_test.cpp
|
| +++ b/tests/skia_test.cpp
|
| @@ -208,15 +208,10 @@ int tool_main(int argc, char** argv) {
|
| int toRun = 0;
|
| Test* test;
|
|
|
| - SkTDArray<const char*> matchStrs;
|
| - for(int i = 0; i < FLAGS_match.count(); ++i) {
|
| - matchStrs.push(FLAGS_match[i]);
|
| - }
|
| -
|
| while ((test = iter.next()) != NULL) {
|
| SkAutoTDelete<Test> owned(test);
|
|
|
| - if(!SkCommandLineFlags::ShouldSkip(matchStrs, test->getName())) {
|
| + if(!SkCommandLineFlags::ShouldSkip(FLAGS_match, test->getName())) {
|
| toRun++;
|
| }
|
| total++;
|
| @@ -232,7 +227,7 @@ int tool_main(int argc, char** argv) {
|
| SkTArray<Test*> unsafeTests; // Always passes ownership to an SkTestRunnable
|
| for (int i = 0; i < total; i++) {
|
| SkAutoTDelete<Test> test(iter.next());
|
| - if (SkCommandLineFlags::ShouldSkip(matchStrs, test->getName())) {
|
| + if (SkCommandLineFlags::ShouldSkip(FLAGS_match, test->getName())) {
|
| ++skipCount;
|
| } else if (!test->isThreadsafe()) {
|
| unsafeTests.push_back() = test.detach();
|
|
|