Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: test/runner/runner_test.dart

Issue 1056733002: Run test tearDowns and clean up temporary directories when a signal is caught. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/runner/parse_metadata_test.dart ('k') | test/runner/signal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/runner_test.dart
diff --git a/test/runner/runner_test.dart b/test/runner/runner_test.dart
index af67c03590988164b0ae24d3a417721437cb0eab..c1c003967d822199c5fa38a075fcddec572a2c22 100644
--- a/test/runner/runner_test.dart
+++ b/test/runner/runner_test.dart
@@ -8,6 +8,7 @@ import 'dart:io';
import 'package:path/path.dart' as p;
import 'package:test/src/util/exit_codes.dart' as exit_codes;
+import 'package:test/src/util/io.dart';
import 'package:test/test.dart';
import '../io.dart';
@@ -51,7 +52,7 @@ Usage: pub run test:test [files or directories...]
void main() {
setUp(() {
- _sandbox = Directory.systemTemp.createTempSync('test_').path;
+ _sandbox = createTempDir();
});
tearDown(() {
« no previous file with comments | « test/runner/parse_metadata_test.dart ('k') | test/runner/signal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698