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

Unified Diff: lib/src/util/dart.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 | « lib/src/runner/vm/isolate_test.dart ('k') | lib/src/util/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/dart.dart
diff --git a/lib/src/util/dart.dart b/lib/src/util/dart.dart
index 378c0350b97f329ce0ff7b23a8086b1b17350233..c62bacbfd2f188dee6d2196fe71d6082bcccf1ae 100644
--- a/lib/src/util/dart.dart
+++ b/lib/src/util/dart.dart
@@ -28,7 +28,7 @@ import 'remote_exception.dart';
/// [String] or a [Uri].
Future<Isolate> runInIsolate(String code, message, {packageRoot}) {
// TODO(nweiz): load code from a local server rather than from a file.
- var dir = Directory.systemTemp.createTempSync().path;
+ var dir = createTempDir();
var dartPath = p.join(dir, 'runInIsolate.dart');
new File(dartPath).writeAsStringSync(code);
var port = new ReceivePort();
« no previous file with comments | « lib/src/runner/vm/isolate_test.dart ('k') | lib/src/util/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698