File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
// BSD-style license that can be found in the LICENSE file.
4
4
// Testing file input stream, VM-only, standalone test.
5
5
6
+ /// Tests the Dart scripts can be read from named pipes, e.g.
7
+ /// `echo 'main(){print("hello, world");}' | dart /dev/fd/0`
8
+
6
9
import "dart:convert" ;
7
10
import "dart:io" ;
8
11
@@ -11,9 +14,10 @@ import "package:expect/expect.dart";
11
14
12
15
main () async {
13
16
asyncStart ();
14
- // Reading a script from a named pipe is only supported on Linux and MacOS.
15
- if (! Platform .isLinux && ! Platform .isMacOS) {
16
- print ("This test is only supported on Linux and MacOS." );
17
+ // Reading a script from a named pipe is only supported on Linux.
18
+ // TODO(https://dartbug.com/26237): Enable support for additional platforms.
19
+ if (! Platform .isLinux) {
20
+ print ("This test is only supported on Linux." );
17
21
asyncEnd ();
18
22
return ;
19
23
}
You can’t perform that action at this time.
0 commit comments