Index: pkg/testing/lib/src/stdio_process.dart |
diff --git a/pkg/testing/lib/src/stdio_process.dart b/pkg/testing/lib/src/stdio_process.dart |
index 8f0f747f85e9660aba637a4b7dd36ecd55c66035..8fff926c3d45542256fa6d4cadfd97e94351d790 100644 |
--- a/pkg/testing/lib/src/stdio_process.dart |
+++ b/pkg/testing/lib/src/stdio_process.dart |
@@ -14,6 +14,8 @@ import 'dart:io' as io show stderr, stdout; |
import 'chain.dart' show Result; |
+import 'expectation.dart' show ExpectationSet; |
+ |
class StdioProcess { |
final int exitCode; |
@@ -25,7 +27,8 @@ class StdioProcess { |
if (exitCode == expected) { |
return new Result<int>.pass(exitCode); |
} else { |
- return new Result<int>.fail(exitCode, output); |
+ return new Result<Program>( |
+ exitCode, ExpectationSet.Default["RuntimeError"], output, null); |
} |
} |