add configure spec for check_cfg not finding the specified program

This commit is contained in:
Josh Holtrop 2018-11-29 21:28:37 -05:00
parent ba5377a1ce
commit bca963af5c

View File

@ -1840,6 +1840,14 @@ EOF
expect(result.status).to eq 0 expect(result.status).to eq 0
expect(result.stdout).to match /gcc.*-o.*\.o.*-DMYPACKAGE/ expect(result.stdout).to match /gcc.*-o.*\.o.*-DMYPACKAGE/
end end
it "fails when the configure program given does not exist" do
test_dir "configure"
result = run_rscons(rsconscript: "check_cfg.rb", op: "configure")
expect(result.stderr).to eq ""
expect(result.status).to_not eq 0
expect(result.stdout).to match /Checking 'my-config'\.\.\. not found/
end
end end
context "when passed a program" do context "when passed a program" do