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

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

Issue 2441743002: Fix two io tests for precompilation, update status (Closed)
Patch Set: address comments Created 4 years, 2 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 | tests/standalone/io/stream_pipe_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/pipe_server_test.dart
diff --git a/tests/standalone/io/pipe_server_test.dart b/tests/standalone/io/pipe_server_test.dart
index 6481a91c7dcada77a07e31e3901aebdffb8cb560..f0cba0e48c60d67c2ce03917e0bba39134566b9c 100644
--- a/tests/standalone/io/pipe_server_test.dart
+++ b/tests/standalone/io/pipe_server_test.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
+// OtherResources=readline_test1.dat
+//
// VMOptions=
// VMOptions=--short_socket_read
// VMOptions=--short_socket_write
@@ -18,7 +20,7 @@ part "testing_server.dart";
String getDataFilename(String path) =>
- new File(path).existsSync() ? path : '../$path';
+ Platform.script.resolve(path).toFilePath();
bool compareFileContent(String fileName1, String fileName2) {
@@ -47,7 +49,7 @@ class PipeServerGame {
void connectHandler() {
String srcFileName =
- getDataFilename("tests/standalone/io/readline_test1.dat");
+ getDataFilename("readline_test1.dat");
Stream fileInput = new File(srcFileName).openRead();
fileInput.pipe(_socket).then((_) {
var tempDir = Directory.systemTemp.createTempSync('dart_pipe_server');
« no previous file with comments | « no previous file | tests/standalone/io/stream_pipe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698