Fix up some configure tests

This commit is contained in:
josh committed 2022-01-26 21:46:07 -05:00
1 parent 7189a04299
commit 679c013eaa
8 files changed
+44 -62

No files matched your search

-14
View File
@@ -2365,13 +2365,6 @@ EOF
expect(result.stdout).to match /gcc.*-o.*\.o.*-DHAVE_MATH_H\s.*-DHAVE_STDIO_H/
end
it "exits with an error if the project is not configured and a build is requested and autoconf is false" do
test_dir "configure"
result = run_rscons(args: %w[-f autoconf_false.rb])
expect(result.stderr).to match /Project must be configured first, and autoconf is disabled/
expect(result.status).to_not eq 0
end
it "exits with an error code and message if configuration fails during autoconf" do
test_dir "configure"
result = run_rscons(args: %w[-f autoconf_fail.rb])
@@ -2381,13 +2374,6 @@ EOF
expect(lines(result.stderr).last).to eq "Configuration failed"
end
it "exits with an error if configuration has not been performed before attempting to create an environment" do
test_dir "configure"
result = run_rscons(args: %w[-f error_env_construction_before_configure.rb])
expect(result.stderr).to match /Project must be configured before creating an Environment/
expect(result.status).to_not eq 0
end
it "does not rebuild after building with auto-configuration" do
test_dir "configure"
result = run_rscons(args: %w[-f autoconf_rebuild.rb])