Skip to content

test: isolate platform-dependent tests for #610 - #613

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/test-isolation-610
Oct 15, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/test-isolation-610

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Summary

  • isolate the bind builtin quartet from host INPUTRC files using on Unix and on Windows
  • rely on Executor's environment snapshot restoration after each test
  • skip the root listing completion assertion when the host denies reading

Validation

running 8 tests
test executor::bind_builtins::tests::bind_x_exit_status_flows_through ... ok
test executor::bind_builtins::tests::bind_x_listing_and_removal_round_trip ... ok
test executor::bind_builtins::tests::bind_x_registration_is_visible_and_process_global_across_clones ... ok
test executor::bind_builtins::tests::generation_changes_on_mutation_only ... ok
test executor::bind_builtins::tests::macro_and_function_bindings_register_and_unbind_by_function ... ok
test executor::bind_builtins::tests::run_bind_x_point_read_back_is_char_offset_and_clamped ... ok
test executor::bind_builtins::tests::run_bind_x_sets_reads_back_and_unbinds ... ok
test executor::bind_builtins::tests::run_bind_x_write_back_replaces_line_and_honors_point ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 652 filtered out; finished in 0.09s (8 passed)

running 1 test
test builtins::complete::completion_hook_tests::compspec_file_action_lists_root ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 659 filtered out; finished in 0.00s (1 passed)

Closes #610.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant