| Index: lib/test.dart
|
| diff --git a/lib/test.dart b/lib/test.dart
|
| index 06280430535a467fd0626163374e735aeb9cb9d4..1d420d311eb9a4d5f33e84122a2d4fd1ae9ec672 100644
|
| --- a/lib/test.dart
|
| +++ b/lib/test.dart
|
| @@ -55,8 +55,13 @@ Declarer get _declarer {
|
| path: p.prettyUri(Uri.base),
|
| platform: "VM")
|
| .forPlatform(TestPlatform.vm, os: currentOSGuess);
|
| - // TODO(nweiz): Set the exit code on the VM when issue 6943 is fixed.
|
| - new NoIoCompactReporter([suite], color: true).run();
|
| +
|
| + new NoIoCompactReporter([suite], color: true).run().then((success) {
|
| + // TODO(nweiz): Set the exit code on the VM when issue 6943 is fixed.
|
| + if (success) return;
|
| + print('');
|
| + new Future.error("Dummy exception to set exit code.");
|
| + });
|
| });
|
| return _globalDeclarer;
|
| }
|
|
|