| Index: tests/standalone/io/file_system_async_links_test.dart
|
| diff --git a/tests/standalone/io/file_system_async_links_test.dart b/tests/standalone/io/file_system_async_links_test.dart
|
| index f958bfadbd061f5ce38c49179a7f7d5b92b5da63..579cdd0fcfb13ad02b638bdb5b0fe32b7634a18c 100644
|
| --- a/tests/standalone/io/file_system_async_links_test.dart
|
| +++ b/tests/standalone/io/file_system_async_links_test.dart
|
| @@ -26,7 +26,7 @@ class FutureExpect {
|
|
|
|
|
| Future testFileExistsCreate() {
|
| - return new Directory('').createTemp().then((temp) {
|
| + return Directory.createSystemTemp('dart_file_system_async').then((temp) {
|
| var x = '${temp.path}${Platform.pathSeparator}x';
|
| var y = '${temp.path}${Platform.pathSeparator}y';
|
| return new Link(y).create(x)
|
| @@ -98,7 +98,7 @@ Future testFileExistsCreate() {
|
|
|
|
|
| Future testFileDelete() {
|
| - return new Directory('').createTemp().then((temp) {
|
| + return Directory.createSystemTemp('dart_file_system_async').then((temp) {
|
| var x = '${temp.path}${Platform.pathSeparator}x';
|
| var y = '${temp.path}${Platform.pathSeparator}y';
|
| return new File(x).create()
|
| @@ -120,7 +120,7 @@ Future testFileDelete() {
|
|
|
|
|
| Future testFileWriteRead() {
|
| - return new Directory('').createTemp().then((temp) {
|
| + return Directory.createSystemTemp('dart_file_system_async').then((temp) {
|
| var x = '${temp.path}${Platform.pathSeparator}x';
|
| var y = '${temp.path}${Platform.pathSeparator}y';
|
| var data = "asdf".codeUnits;
|
| @@ -136,7 +136,7 @@ Future testFileWriteRead() {
|
|
|
|
|
| Future testDirectoryExistsCreate() {
|
| - return new Directory('').createTemp().then((temp) {
|
| + return Directory.createSystemTemp('dart_file_system_async').then((temp) {
|
| var x = '${temp.path}${Platform.pathSeparator}x';
|
| var y = '${temp.path}${Platform.pathSeparator}y';
|
| return new Link(y).create(x)
|
| @@ -149,8 +149,8 @@ Future testDirectoryExistsCreate() {
|
|
|
|
|
| Future testDirectoryDelete() {
|
| - return new Directory('').createTemp().then((temp) =>
|
| - new Directory('').createTemp().then((temp2) {
|
| + return Directory.createSystemTemp('dart_file_system_async').then((temp) =>
|
| + Directory.createSystemTemp('dart_file_system_async').then((temp2) {
|
| var y = '${temp.path}${Platform.pathSeparator}y';
|
| var x = '${temp2.path}${Platform.pathSeparator}x';
|
| var link = new Directory(y);
|
| @@ -174,8 +174,8 @@ Future testDirectoryDelete() {
|
|
|
|
|
| Future testDirectoryListing() {
|
| - return new Directory('').createTemp().then((temp) =>
|
| - new Directory('').createTemp().then((temp2) {
|
| + return Directory.createSystemTemp('dart_file_system_async').then((temp) =>
|
| + Directory.createSystemTemp('dart_file_system_async_links').then((temp2) {
|
| var sep = Platform.pathSeparator;
|
| var y = '${temp.path}${sep}y';
|
| var x = '${temp2.path}${sep}x';
|
| @@ -194,7 +194,7 @@ Future testDirectoryListing() {
|
|
|
|
|
| Future testDirectoryListingBrokenLink() {
|
| - return new Directory('').createTemp().then((temp) {
|
| + return Directory.createSystemTemp('dart_file_system_async').then((temp) {
|
| var x = '${temp.path}${Platform.pathSeparator}x';
|
| var link = '${temp.path}${Platform.pathSeparator}link';
|
| var doesNotExist = 'this_thing_does_not_exist';
|
|
|