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

Unified Diff: tests/standalone/src/DirectoryTest.dart

Issue 8879058: Change temp dir generation on Windows to use UUIDs instead of random numbers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test Created 9 years 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 | « runtime/bin/directory_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/DirectoryTest.dart
diff --git a/tests/standalone/src/DirectoryTest.dart b/tests/standalone/src/DirectoryTest.dart
index d015ea6868654c8dd89a8c90d3991d8b1ae1826a..77d4bdb79aee9c416e3cd35bc805056484323a7d 100644
--- a/tests/standalone/src/DirectoryTest.dart
+++ b/tests/standalone/src/DirectoryTest.dart
@@ -204,7 +204,6 @@ class DirectoryTest {
class NestedTempDirectoryTest {
List<Directory> createdDirectories;
- static final int nestingDepth = 6;
Directory current;
NestedTempDirectoryTest(): createdDirectories = new List<Directory>();
@@ -215,6 +214,9 @@ class NestedTempDirectoryTest {
void createPhaseCallback() {
createdDirectories.add(current);
+ int nestingDepth = 6;
+ var os = new Platform().operatingSystem();
+ if (os == "windows") nestingDepth = 2;
if (createdDirectories.length < nestingDepth) {
current = new Directory(
current.path + "/nested_temp_dir_${createdDirectories.length}_");
« no previous file with comments | « runtime/bin/directory_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698