From 14ea43f92832469d7f2e8f4241b14121b8cba54b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 11 Sep 2024 16:54:41 +0900 Subject: [PATCH] Fix the portability of an external command `ls` is a very common command on UNIX-like platforms, but not on DOSish platforms. --- test/rbs/cli_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rbs/cli_test.rb b/test/rbs/cli_test.rb index f8701045c..488407ae4 100644 --- a/test/rbs/cli_test.rb +++ b/test/rbs/cli_test.rb @@ -1092,8 +1092,8 @@ def foo: () -> void RBS with_cli do |cli| - # Assumes there is `ls` command. - assert_rbs_test_no_errors(cli, dir, %w(--target ::Foo ls)) + # `exit` is a common shell built-in command. + assert_rbs_test_no_errors(cli, dir, %w(--target ::Foo exit)) assert_raises(SystemExit) { cli.run(%w(test)) } assert_raises(SystemExit) { cli.run(%W(-I #{dir} test)) }