@@ -259,6 +259,7 @@ fn test_n0_with_follow() {
259259// TODO: Add similar test for windows
260260#[ test]
261261#[ cfg( unix) ]
262+ #[ cfg_attr( wasi_runner, ignore = "WASI: errno/error-message mismatches" ) ]
262263fn test_permission_denied ( ) {
263264 use std:: os:: unix:: fs:: PermissionsExt ;
264265
@@ -279,6 +280,7 @@ fn test_permission_denied() {
279280// TODO: Add similar test for windows
280281#[ test]
281282#[ cfg( unix) ]
283+ #[ cfg_attr( wasi_runner, ignore = "WASI: errno/error-message mismatches" ) ]
282284fn test_permission_denied_multiple ( ) {
283285 use std:: os:: unix:: fs:: PermissionsExt ;
284286
@@ -327,6 +329,7 @@ fn test_follow_redirect_stdin_name_retry() {
327329 not( target_os = "freebsd" ) ,
328330 not( target_os = "openbsd" )
329331) ) ] // FIXME: for currently not working platforms
332+ #[ cfg_attr( wasi_runner, ignore = "WASI: errno/error-message mismatches" ) ]
330333fn test_stdin_redirect_dir ( ) {
331334 // $ mkdir dir
332335 // $ tail < dir, $ tail - < dir
@@ -765,6 +768,7 @@ fn test_follow_invalid_pid() {
765768 not( target_os = "android" ) ,
766769 not( target_os = "freebsd" )
767770) ) ] // FIXME: for currently not working platforms
771+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
768772fn test_follow_with_pid ( ) {
769773 use std:: process:: Command ;
770774
@@ -1314,6 +1318,7 @@ fn test_num_with_undocumented_sign_bytes() {
13141318
13151319#[ test]
13161320#[ cfg( unix) ]
1321+ #[ cfg_attr( wasi_runner, ignore = "WASI sandbox: host paths not visible" ) ]
13171322fn test_bytes_for_funny_unix_files ( ) {
13181323 // inspired by: gnu/tests/tail-2/tail-c.sh
13191324 let ts = TestScenario :: new ( util_name ! ( ) ) ;
@@ -1375,6 +1380,7 @@ fn test_retry2() {
13751380 not( target_os = "freebsd" ) ,
13761381 not( target_os = "openbsd" )
13771382) ) ] // FIXME: for currently not working platforms
1383+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
13781384fn test_retry3 ( ) {
13791385 // inspired by: gnu/tests/tail-2/retry.sh
13801386 // Ensure that `tail --retry --follow=name` waits for the file to appear.
@@ -1420,6 +1426,7 @@ fn test_retry3() {
14201426 not( target_os = "freebsd" ) ,
14211427 not( target_os = "openbsd" )
14221428) ) ] // FIXME: for currently not working platforms
1429+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
14231430fn test_retry4 ( ) {
14241431 // inspired by: gnu/tests/tail-2/retry.sh
14251432 // Ensure that `tail --retry --follow=descriptor` waits for the file to appear.
@@ -1478,6 +1485,7 @@ fn test_retry4() {
14781485 not( target_os = "freebsd" ) ,
14791486 not( target_os = "openbsd" )
14801487) ) ] // FIXME: for currently not working platforms
1488+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
14811489fn test_retry5 ( ) {
14821490 // inspired by: gnu/tests/tail-2/retry.sh
14831491 // Ensure that `tail --follow=descriptor --retry` exits when the file appears untailable.
@@ -1569,6 +1577,7 @@ fn test_retry6() {
15691577 not( target_os = "freebsd" ) ,
15701578 not( target_os = "openbsd" )
15711579) ) ] // FIXME: for currently not working platforms
1580+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
15721581fn test_retry7 ( ) {
15731582 // inspired by: gnu/tests/tail-2/retry.sh
15741583 // Ensure that `tail -F` retries when the file is initially untailable.
@@ -1644,6 +1653,7 @@ fn test_retry7() {
16441653 not( target_os = "freebsd" ) ,
16451654 not( target_os = "openbsd" )
16461655) ) ] // FIXME: for currently not working platforms
1656+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
16471657fn test_retry8 ( ) {
16481658 // Ensure that inotify will switch to polling mode if directory
16491659 // of the watched file was initially missing and later created.
@@ -1713,6 +1723,7 @@ fn test_retry8() {
17131723 not( target_os = "freebsd" ) ,
17141724 not( target_os = "openbsd" )
17151725) ) ] // FIXME: for currently not working platforms
1726+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
17161727fn test_retry9 ( ) {
17171728 // inspired by: gnu/tests/tail-2/inotify-dir-recreate.sh
17181729 // Ensure that inotify will switch to polling mode if directory
@@ -1795,6 +1806,7 @@ fn test_retry9() {
17951806 not( target_os = "freebsd" ) ,
17961807 not( target_os = "openbsd" )
17971808) ) ] // FIXME: for currently not working platforms
1809+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
17981810fn test_follow_descriptor_vs_rename1 ( ) {
17991811 // inspired by: gnu/tests/tail-2/descriptor-vs-rename.sh
18001812 // $ ((rm -f A && touch A && sleep 1 && echo -n "A\n" >> A && sleep 1 && \
@@ -1859,6 +1871,7 @@ fn test_follow_descriptor_vs_rename1() {
18591871 not( target_os = "freebsd" ) ,
18601872 not( target_os = "openbsd" )
18611873) ) ] // FIXME: for currently not working platforms
1874+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
18621875fn test_follow_descriptor_vs_rename2 ( ) {
18631876 // Ensure the headers are correct for --verbose.
18641877 // NOTE: GNU's tail does not update the header from FILE_A to FILE_C after `mv FILE_A FILE_C`
@@ -1912,6 +1925,7 @@ fn test_follow_descriptor_vs_rename2() {
19121925 not( target_os = "freebsd" ) ,
19131926 not( target_os = "openbsd" )
19141927) ) ] // FIXME: for currently not working platforms
1928+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
19151929fn test_follow_name_retry_headers ( ) {
19161930 // inspired by: "gnu/tests/tail-2/F-headers.sh"
19171931 // Ensure tail -F distinguishes output with the
@@ -2166,6 +2180,7 @@ fn test_follow_name_truncate3() {
21662180 not( target_os = "windows" ) ,
21672181 not( feature = "feat_selinux" ) // flaky
21682182) ) ] // FIXME: for currently not working platforms
2183+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
21692184fn test_follow_name_truncate4 ( ) {
21702185 // Truncating a file with the same content it already has should not trigger a truncate event
21712186
@@ -2256,6 +2271,7 @@ fn test_follow_truncate_fast() {
22562271 not( target_os = "freebsd" ) ,
22572272 not( target_os = "openbsd" )
22582273) ) ] // FIXME: for currently not working platforms
2274+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
22592275fn test_follow_name_move_create1 ( ) {
22602276 // This test triggers a move/create event while `tail --follow=name file` is running.
22612277 // ((sleep 2 && mv file backup && sleep 2 && cp backup file &)>/dev/null 2>&1 &) ; tail --follow=name file
@@ -2312,6 +2328,7 @@ fn test_follow_name_move_create1() {
23122328 not( target_os = "freebsd" ) ,
23132329 not( target_os = "openbsd" )
23142330) ) ] // FIXME: for currently not working platforms
2331+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
23152332fn test_follow_name_move_create2 ( ) {
23162333 // inspired by: "gnu/tests/tail-2/inotify-hash-abuse.sh"
23172334 // Exercise an abort-inducing flaw in inotify-enabled tail -F
@@ -2392,6 +2409,7 @@ fn test_follow_name_move_create2() {
23922409 not( target_os = "freebsd" ) ,
23932410 not( target_os = "openbsd" )
23942411) ) ] // FIXME: for currently not working platforms
2412+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
23952413fn test_follow_name_move1 ( ) {
23962414 // This test triggers a move event while `tail --follow=name file` is running.
23972415 // ((sleep 2 && mv file backup &)>/dev/null 2>&1 &) ; tail --follow=name file
@@ -2454,6 +2472,7 @@ fn test_follow_name_move1() {
24542472 not( target_os = "freebsd" ) ,
24552473 not( target_os = "openbsd" )
24562474) ) ] // FIXME: for currently not working platforms
2475+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
24572476fn test_follow_name_move2 ( ) {
24582477 // Like test_follow_name_move1, but move to a name that's already monitored.
24592478
@@ -2542,6 +2561,7 @@ fn test_follow_name_move2() {
25422561 not( target_os = "freebsd" ) ,
25432562 not( target_os = "openbsd" )
25442563) ) ] // FIXME: for currently not working platforms
2564+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
25452565fn test_follow_name_move_retry1 ( ) {
25462566 // Similar to test_follow_name_move1 but with `--retry` (`-F`)
25472567 // This test triggers two move/rename events while `tail --follow=name --retry file` is running.
@@ -2602,6 +2622,7 @@ fn test_follow_name_move_retry1() {
26022622 not( target_os = "freebsd" ) ,
26032623 not( target_os = "openbsd" )
26042624) ) ] // FIXME: for currently not working platforms
2625+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
26052626fn test_follow_name_move_retry2 ( ) {
26062627 // inspired by: "gnu/tests/tail-2/F-vs-rename.sh"
26072628 // Similar to test_follow_name_move2 (move to a name that's already monitored)
@@ -2793,6 +2814,7 @@ fn test_fifo() {
27932814 not( target_os = "freebsd" ) ,
27942815 not( target_os = "openbsd" )
27952816) ) ]
2817+ #[ cfg_attr( wasi_runner, ignore = "WASI: no FIFO/mkfifo support" ) ]
27962818fn test_fifo_with_pid ( ) {
27972819 use std:: process:: { Command , Stdio } ;
27982820
@@ -4132,6 +4154,7 @@ fn test_args_when_settings_check_warnings_then_shows_warnings() {
41324154/// TODO: Write similar tests for windows
41334155#[ test]
41344156#[ cfg( target_os = "linux" ) ]
4157+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
41354158fn test_args_when_settings_check_warnings_follow_indefinitely_then_warning ( ) {
41364159 let scene = TestScenario :: new ( util_name ! ( ) ) ;
41374160
@@ -4632,6 +4655,7 @@ fn test_args_when_directory_given_shorthand_big_f_together_with_retry() {
46324655 not( target_os = "openbsd" ) ,
46334656 not( feature = "feat_selinux" ) // flaky
46344657) ) ]
4658+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
46354659fn test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same_size ( ) {
46364660 let scene = TestScenario :: new ( util_name ! ( ) ) ;
46374661 let at = & scene. fixtures ;
@@ -5002,6 +5026,7 @@ fn test_obsolete_encoding_windows() {
50025026
50035027#[ test]
50045028#[ cfg( not( target_vendor = "apple" ) ) ] // FIXME: for currently not working platforms
5029+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
50055030fn test_following_with_pid ( ) {
50065031 use std:: process:: Command ;
50075032
@@ -5121,6 +5146,7 @@ fn test_failed_write_is_reported() {
51215146
51225147#[ test]
51235148#[ cfg( target_os = "linux" ) ]
5149+ #[ cfg_attr( wasi_runner, ignore = "WASI sandbox: host paths not visible" ) ]
51245150fn test_dev_zero ( ) {
51255151 new_ucmd ! ( )
51265152 . args ( & [ "-c" , "1" , "/dev/zero" ] )
@@ -5165,6 +5191,7 @@ fn test_follow_pipe_f() {
51655191
51665192#[ test]
51675193#[ cfg( target_os = "linux" ) ]
5194+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
51685195fn test_follow_stdout_pipe_close ( ) {
51695196 let ( at, mut ucmd) = at_and_ucmd ! ( ) ;
51705197 at. write ( "f" , "line1\n line2\n " ) ;
@@ -5201,6 +5228,7 @@ fn test_debug_flag_with_polling() {
52015228
52025229#[ test]
52035230#[ cfg( target_os = "linux" ) ]
5231+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
52045232fn test_debug_flag_with_inotify ( ) {
52055233 let ts = TestScenario :: new ( util_name ! ( ) ) ;
52065234 let at = & ts. fixtures ;
@@ -5218,6 +5246,7 @@ fn test_debug_flag_with_inotify() {
52185246
52195247#[ test]
52205248#[ cfg( target_os = "linux" ) ]
5249+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
52215250fn test_follow_dangling_symlink ( ) {
52225251 let ( at, mut ucmd) = at_and_ucmd ! ( ) ;
52235252 at. symlink_file ( "target" , "link" ) ;
@@ -5232,6 +5261,7 @@ fn test_follow_dangling_symlink() {
52325261
52335262#[ test]
52345263#[ cfg( target_os = "linux" ) ]
5264+ #[ cfg_attr( wasi_runner, ignore = "WASI: tail follow mode disabled" ) ]
52355265fn test_follow_symlink_target_change ( ) {
52365266 let ( at, mut ucmd) = at_and_ucmd ! ( ) ;
52375267 at. write ( "t1" , "A\n " ) ;
0 commit comments