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

Unified Diff: tests/standalone/io/file_write_only_test.dart

Issue 1199283002: Fix bot failure: use platform specific separator (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_write_only_test.dart
diff --git a/tests/standalone/io/file_write_only_test.dart b/tests/standalone/io/file_write_only_test.dart
index 6b00ac4b960847bf6e29dd54873e35367979966d..4b58bd05eba96635aa87c2d70ac5ed9626adcc92 100644
--- a/tests/standalone/io/file_write_only_test.dart
+++ b/tests/standalone/io/file_write_only_test.dart
@@ -35,7 +35,7 @@ Future expectThrowsAsync(Future future, String message) {
Future write(Directory dir) async {
- var f = new File(dir.path + '/write');
+ var f = new File("${dir.path}${Platform.pathSeparator}write");
var raf = await f.open(mode: WRITE_ONLY);
await raf.writeString('Hello');
await raf.setPosition(0);
@@ -55,7 +55,7 @@ Future write(Directory dir) async {
}
void writeSync(Directory dir) {
- var f = new File(dir.path + '/write_sync');
+ var f = new File("${dir.path}${Platform.pathSeparator}write_sync");
var raf = f.openSync(mode: WRITE_ONLY);
raf.writeStringSync('Hello');
raf.setPositionSync(0);
@@ -66,7 +66,7 @@ void writeSync(Directory dir) {
}
Future openWrite(Directory dir) async {
- var f = new File(dir.path + '/open_write');
+ var f = new File("${dir.path}${Platform.pathSeparator}open_write");
var sink = f.openWrite(mode: WRITE_ONLY);
sink.write('Hello');
await sink.close();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698