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

Unified Diff: tests/stub-generator/test_config.dart

Issue 9240011: Add temporary directory for dartc compilation of tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed name to createOutputDirectory Created 8 years, 11 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 | « frog/tests/leg_only/test_config.dart ('k') | tools/test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/stub-generator/test_config.dart
diff --git a/tests/stub-generator/test_config.dart b/tests/stub-generator/test_config.dart
index 4eb9e1e2716c675b8164e60dbbf3114a9f458493..e57ce66f9555cf2830e3d233fd853c9236c88731 100644
--- a/tests/stub-generator/test_config.dart
+++ b/tests/stub-generator/test_config.dart
@@ -21,6 +21,8 @@ class StubGeneratorTestSuite extends StandardTestSuite {
}
}
+ bool get requiresCleanTemporaryDirectory() => true;
+
void combineFiles(String filename,
String stubsFile,
Function onGenerated) {
@@ -99,8 +101,8 @@ class StubGeneratorTestSuite extends StandardTestSuite {
String classes,
Function onGenerated) {
testGeneratorStarted();
- Directory temp = new Directory('');
- temp.createTempSync();
+ Directory temp = createOutputDirectory(interfaceFile, '');
+
File stubsOutFile = new File("${temp.path}/${interfaceFile}");
stubsOutFile.createSync();
String stubsPath = stubsOutFile.fullPathSync();
« no previous file with comments | « frog/tests/leg_only/test_config.dart ('k') | tools/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698