Index: tests/standalone/io/directory_test.dart |
diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart |
index c1934835abb74812235bcd4ba0d3881d1930f633..f5079f04b140bbb546120720ecb4e30b144d8732 100644 |
--- a/tests/standalone/io/directory_test.dart |
+++ b/tests/standalone/io/directory_test.dart |
@@ -372,6 +372,22 @@ class DirectoryTest { |
} |
} |
+ static void testCreateTempRelative() { |
+ String template = 'dart_relative_temp_dir'; |
+ Directory base = new Directory('tmp'); |
+ base.createSync(); |
+ Expect.isTrue(base.existsSync()); |
+ try { |
+ Directory tmp = base.createTempSync(template); |
+ Expect.isTrue(tmp.existsSync()); |
+ Directory tmpCurrent = Directory.current.createTempSync(template); |
+ Expect.isTrue(tmpCurrent.existsSync()); |
+ tmpCurrent.deleteSync(); |
+ } finally { |
+ base.deleteSync(recursive: true); |
+ } |
+ } |
+ |
static void testCreateSystemTemp() { |
String template = 'dart_system_temp_dir'; |
asyncStart(); |
@@ -444,6 +460,7 @@ class DirectoryTest { |
testListBrokenLinkSync(); |
testListLinkSync(); |
testCreateTemp(); |
+ testCreateTempRelative(); |
testCreateSystemTemp(); |
testCreateDeleteTemp(); |
testCurrent(); |