mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
Fix two io tests for precompilation, update status
BUG=#26376 R=rmacnak@google.com Review URL: https://codereview.chromium.org/2441743002 .
This commit is contained in:
parent
74d8298777
commit
c3fb2b5d89
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
@ -15,7 +17,7 @@ import "package:expect/expect.dart";
|
|||
// Helper method to be able to run the test from the runtime
|
||||
// directory, or the top directory.
|
||||
String getDataFilename(String path) =>
|
||||
new File(path).existsSync() ? path : '../$path';
|
||||
Platform.script.resolve(path).toFilePath();
|
||||
|
||||
|
||||
bool compareFileContent(String fileName1,
|
||||
|
@ -64,7 +66,7 @@ testFileToFilePipe1() {
|
|||
asyncStart();
|
||||
|
||||
String srcFileName =
|
||||
getDataFilename("tests/standalone/io/readline_test1.dat");
|
||||
getDataFilename("readline_test1.dat");
|
||||
var srcStream = new File(srcFileName).openRead();
|
||||
|
||||
var tempDir = Directory.systemTemp.createTempSync('dart_stream_pipe');
|
||||
|
@ -89,7 +91,7 @@ testFileToFilePipe2() {
|
|||
asyncStart();
|
||||
|
||||
String srcFileName =
|
||||
getDataFilename("tests/standalone/io/readline_test1.dat");
|
||||
getDataFilename("readline_test1.dat");
|
||||
var srcFile = new File(srcFileName);
|
||||
var srcStream = srcFile.openRead();
|
||||
|
||||
|
@ -131,7 +133,7 @@ testFileToFilePipe3() {
|
|||
asyncStart();
|
||||
|
||||
String srcFileName =
|
||||
getDataFilename("tests/standalone/io/readline_test1.dat");
|
||||
getDataFilename("readline_test1.dat");
|
||||
var srcFile = new File(srcFileName);
|
||||
var srcStream = srcFile.openRead();
|
||||
|
||||
|
|
|
@ -326,6 +326,35 @@ link_natives_lazily_test: SkipByDesign
|
|||
# SIMDBC interpreter doesn't support --no_lazy_dispatchers
|
||||
no_lazy_dispatchers_test: SkipByDesign
|
||||
|
||||
[ $compiler == precompiler && $runtime == dart_precompiled && $system == android ]
|
||||
# Issue 26376
|
||||
io/file_system_watcher_test: RuntimeError
|
||||
io/uri_platform_test: RuntimeError
|
||||
io/resolve_symbolic_links_test: RuntimeError
|
||||
io/file_stat_test: RuntimeError
|
||||
# Issue #27638
|
||||
io/raw_datagram_socket_test: RuntimeError
|
||||
io/http_proxy_advanced_test: RuntimeError
|
||||
io/regress_21160_test: RuntimeError
|
||||
io/secure_multiple_client_server_test: RuntimeError
|
||||
io/http_proxy_test: RuntimeError
|
||||
io/secure_session_resume_test: RuntimeError
|
||||
io/raw_secure_server_socket_test: RuntimeError
|
||||
io/raw_secure_server_closing_test: RuntimeError
|
||||
io/raw_secure_socket_pause_test: RuntimeError
|
||||
io/https_server_test: RuntimeError
|
||||
io/secure_server_client_certificate_test: RuntimeError
|
||||
io/secure_socket_alpn_test: RuntimeError
|
||||
io/secure_bad_certificate_test: RuntimeError
|
||||
io/secure_server_socket_test: RuntimeError
|
||||
io/secure_client_server_test: RuntimeError
|
||||
io/socket_upgrade_to_secure_test: RuntimeError
|
||||
io/secure_client_raw_server_test: RuntimeError
|
||||
io/secure_socket_test: RuntimeError
|
||||
io/raw_secure_socket_test: RuntimeError
|
||||
io/https_bad_certificate_test: RuntimeError
|
||||
io/secure_server_closing_test: RuntimeError
|
||||
|
||||
[ $runtime == vm || $runtime == dart_app || $runtime == dart_precompiled ]
|
||||
deferred_transitive_import_error_test: Skip # Contains intentional errors.
|
||||
|
||||
|
|
Loading…
Reference in a new issue