Chromium Code Reviews| Index: runtime/bin/run_vm_tests.cc |
| diff --git a/runtime/bin/run_vm_tests.cc b/runtime/bin/run_vm_tests.cc |
| index c6e11b40d35eb75745f2de884ff9784241a2a520..8d49fe077baff3d1feec009fd5d437758e65f3ea 100644 |
| --- a/runtime/bin/run_vm_tests.cc |
| +++ b/runtime/bin/run_vm_tests.cc |
| @@ -41,6 +41,13 @@ void TestCase::Run() { |
| } |
| +void RawTestCase::Run() { |
| + fprintf(stdout, "Running test: %s\n", name()); |
|
rmacnak
2017/01/31 21:43:42
OS::Print
bkonyi
2017/01/31 22:14:35
fprintf is used throughout run_vm_tests.cc. Should
rmacnak
2017/01/31 22:44:39
They ought to be OS::Print so one can actually rea
bkonyi
2017/01/31 22:57:18
Ah okay. I'll update all of the fprintf instances
|
| + (*run_)(); |
| + fprintf(stdout, "Done: %s\n", name()); |
| +} |
| + |
| + |
| void TestCaseBase::RunTest() { |
| if (strcmp(run_filter, this->name()) == 0) { |
| this->Run(); |
| @@ -90,6 +97,7 @@ static int Main(int argc, const char** argv) { |
| // List all tests and benchmarks and exit without initializing the VM. |
| TestCaseBase::RunAll(); |
| Benchmark::RunAll(argv[0]); |
| + TestCaseBase::RunAllRaw(); |
| fflush(stdout); |
| return 0; |
| } else if (strcmp(argv[1], "--benchmarks") == 0) { |
| @@ -122,6 +130,7 @@ static int Main(int argc, const char** argv) { |
| err_msg = Dart::Cleanup(); |
| ASSERT(err_msg == NULL); |
| + TestCaseBase::RunAllRaw(); |
|
bkonyi
2017/01/31 20:59:50
The raw tests are run after the VM is shutdown sin
|
| // Print a warning message if no tests or benchmarks were matched. |
| if (run_matches == 0) { |
| fprintf(stderr, "No tests matched: %s\n", run_filter); |