Second try at objdump call for linux

This commit is contained in:
Lukas Oberhuber 2022-08-06 10:06:32 -07:00
parent f930dd58a0
commit 19a66e75c4

View File

@ -83,7 +83,7 @@ describe "brew install" do
expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test").to be_a_file expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test").to be_a_file
expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test.dSYM").to be_a_directory if OS.mac? expect(HOMEBREW_CELLAR/"testball1/0.1/bin/test.dSYM").to be_a_directory if OS.mac?
if OS.linux? if OS.linux?
expect { system_command("objdump", "-h", "${HOMEBREW_CELLAR}/testball1/0.1/bin/test") } expect { system_command("objdump", args: ["-h", "${HOMEBREW_CELLAR}/testball1/0.1/bin/test"]) }
.to output(/\.debug/).to_stdout .to output(/\.debug/).to_stdout
end end
expect(HOMEBREW_CACHE/"Sources/testball1").to be_a_directory expect(HOMEBREW_CACHE/"Sources/testball1").to be_a_directory