@@ -24,7 +24,6 @@ use core_test_support::responses::mount_sse_sequence;
2424use core_test_support:: responses:: sse;
2525use core_test_support:: responses:: start_mock_server;
2626use core_test_support:: skip_if_no_network;
27- #[ cfg( target_os = "macos" ) ]
2827use core_test_support:: skip_if_sandbox;
2928use core_test_support:: test_codex:: TestCodex ;
3029use core_test_support:: test_codex:: test_codex;
@@ -158,7 +157,6 @@ fn exec_command_event_with_missing_additional_permissions(
158157 Ok ( ev_function_call ( call_id, "exec_command" , & args_str) )
159158}
160159
161- #[ cfg( target_os = "macos" ) ]
162160fn shell_event_with_raw_request_permissions (
163161 call_id : & str ,
164162 command : & str ,
@@ -291,7 +289,6 @@ fn normalized_directory_write_permissions(path: &Path) -> Result<PermissionProfi
291289}
292290
293291#[ tokio:: test( flavor = "current_thread" ) ]
294- #[ cfg( target_os = "macos" ) ]
295292async fn with_additional_permissions_requires_approval_under_on_request ( ) -> Result < ( ) > {
296293 skip_if_no_network ! ( Ok ( ( ) ) ) ;
297294 skip_if_sandbox ! ( Ok ( ( ) ) ) ;
@@ -380,7 +377,6 @@ async fn with_additional_permissions_requires_approval_under_on_request() -> Res
380377}
381378
382379#[ tokio:: test( flavor = "current_thread" ) ]
383- #[ cfg( target_os = "macos" ) ]
384380async fn relative_additional_permissions_resolve_against_tool_workdir ( ) -> Result < ( ) > {
385381 skip_if_no_network ! ( Ok ( ( ) ) ) ;
386382 skip_if_sandbox ! ( Ok ( ( ) ) ) ;
@@ -480,7 +476,6 @@ async fn relative_additional_permissions_resolve_against_tool_workdir() -> Resul
480476}
481477
482478#[ tokio:: test( flavor = "current_thread" ) ]
483- #[ cfg( target_os = "macos" ) ]
484479async fn read_only_with_additional_permissions_does_not_widen_to_unrequested_cwd_write ( )
485480-> Result < ( ) > {
486481 skip_if_no_network ! ( Ok ( ( ) ) ) ;
@@ -580,7 +575,6 @@ async fn read_only_with_additional_permissions_does_not_widen_to_unrequested_cwd
580575}
581576
582577#[ tokio:: test( flavor = "current_thread" ) ]
583- #[ cfg( target_os = "macos" ) ]
584578async fn read_only_with_additional_permissions_does_not_widen_to_unrequested_tmp_write ( )
585579-> Result < ( ) > {
586580 skip_if_no_network ! ( Ok ( ( ) ) ) ;
@@ -681,7 +675,6 @@ async fn read_only_with_additional_permissions_does_not_widen_to_unrequested_tmp
681675}
682676
683677#[ tokio:: test( flavor = "current_thread" ) ]
684- #[ cfg( target_os = "macos" ) ]
685678async fn workspace_write_with_additional_permissions_can_write_outside_cwd ( ) -> Result < ( ) > {
686679 skip_if_no_network ! ( Ok ( ( ) ) ) ;
687680 skip_if_sandbox ! ( Ok ( ( ) ) ) ;
@@ -788,7 +781,6 @@ async fn workspace_write_with_additional_permissions_can_write_outside_cwd() ->
788781}
789782
790783#[ tokio:: test( flavor = "current_thread" ) ]
791- #[ cfg( unix) ]
792784async fn with_additional_permissions_denied_approval_blocks_execution ( ) -> Result < ( ) > {
793785 skip_if_no_network ! ( Ok ( ( ) ) ) ;
794786 let server = start_mock_server ( ) . await ;
@@ -892,7 +884,6 @@ async fn with_additional_permissions_denied_approval_blocks_execution() -> Resul
892884}
893885
894886#[ tokio:: test( flavor = "current_thread" ) ]
895- #[ cfg( target_os = "macos" ) ]
896887async fn request_permissions_grants_apply_to_later_exec_command_calls ( ) -> Result < ( ) > {
897888 skip_if_no_network ! ( Ok ( ( ) ) ) ;
898889 skip_if_sandbox ! ( Ok ( ( ) ) ) ;
@@ -1010,7 +1001,6 @@ async fn request_permissions_grants_apply_to_later_exec_command_calls() -> Resul
10101001}
10111002
10121003#[ tokio:: test( flavor = "current_thread" ) ]
1013- #[ cfg( target_os = "macos" ) ]
10141004async fn request_permissions_preapprove_explicit_exec_permissions_outside_on_request ( ) -> Result < ( ) >
10151005{
10161006 skip_if_no_network ! ( Ok ( ( ) ) ) ;
@@ -1122,7 +1112,6 @@ async fn request_permissions_preapprove_explicit_exec_permissions_outside_on_req
11221112}
11231113
11241114#[ tokio:: test( flavor = "current_thread" ) ]
1125- #[ cfg( target_os = "macos" ) ]
11261115async fn request_permissions_grants_apply_to_later_shell_command_calls ( ) -> Result < ( ) > {
11271116 skip_if_no_network ! ( Ok ( ( ) ) ) ;
11281117 skip_if_sandbox ! ( Ok ( ( ) ) ) ;
@@ -1226,7 +1215,6 @@ async fn request_permissions_grants_apply_to_later_shell_command_calls() -> Resu
12261215}
12271216
12281217#[ tokio:: test( flavor = "current_thread" ) ]
1229- #[ cfg( target_os = "macos" ) ]
12301218async fn partial_request_permissions_grants_do_not_preapprove_new_permissions ( ) -> Result < ( ) > {
12311219 skip_if_no_network ! ( Ok ( ( ) ) ) ;
12321220 skip_if_sandbox ! ( Ok ( ( ) ) ) ;
@@ -1364,7 +1352,6 @@ async fn partial_request_permissions_grants_do_not_preapprove_new_permissions()
13641352}
13651353
13661354#[ tokio:: test( flavor = "current_thread" ) ]
1367- #[ cfg( target_os = "macos" ) ]
13681355async fn request_permissions_grants_do_not_carry_across_turns ( ) -> Result < ( ) > {
13691356 skip_if_no_network ! ( Ok ( ( ) ) ) ;
13701357 skip_if_sandbox ! ( Ok ( ( ) ) ) ;
0 commit comments