Index: runtime/vm/unit_test.cc |
diff --git a/runtime/vm/unit_test.cc b/runtime/vm/unit_test.cc |
index cec626875a33359826a483c1b2182e3ee0522720..6a9c5f511bf8c95b7fffc08ed7234fc80d3270cd 100644 |
--- a/runtime/vm/unit_test.cc |
+++ b/runtime/vm/unit_test.cc |
@@ -32,7 +32,8 @@ TestCaseBase* TestCaseBase::first_ = NULL; |
TestCaseBase* TestCaseBase::tail_ = NULL; |
-TestCaseBase::TestCaseBase(const char* name) : next_(NULL), name_(name) { |
+TestCaseBase::TestCaseBase(const char* name) |
+ : raw_test_(false), next_(NULL), name_(name) { |
if (first_ == NULL) { |
first_ = this; |
} else { |
@@ -42,10 +43,23 @@ TestCaseBase::TestCaseBase(const char* name) : next_(NULL), name_(name) { |
} |
+void TestCaseBase::RunAllRaw() { |
+ TestCaseBase* test = first_; |
+ while (test != NULL) { |
+ if (test->raw_test_) { |
+ test->RunTest(); |
+ } |
+ test = test->next_; |
+ } |
+} |
+ |
+ |
void TestCaseBase::RunAll() { |
TestCaseBase* test = first_; |
while (test != NULL) { |
- test->RunTest(); |
+ if (!test->raw_test_) { |
+ test->RunTest(); |
+ } |
test = test->next_; |
} |
} |