From bc17a9b38fa38bcb79e56ef8f356c2b1d92e55f4 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 27 Feb 2022 17:34:48 -0500 Subject: [PATCH] Test that clean task does not process environments --- spec/build_tests_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/build_tests_spec.rb b/spec/build_tests_spec.rb index 1aaac21..ef6c0cd 100644 --- a/spec/build_tests_spec.rb +++ b/spec/build_tests_spec.rb @@ -372,6 +372,17 @@ EOF expect(File.exists?('simple.c')).to be_truthy end + it "does not process environments" do + test_dir("simple") + result = run_rscons(args: %w[clean]) + expect(result.stderr).to eq "" + expect(File.exists?('build/e.1/simple.c.o')).to be_falsey + expect(File.exists?('build/e.1')).to be_falsey + expect(File.exists?('simple.exe')).to be_falsey + expect(File.exists?('simple.c')).to be_truthy + expect(result.stdout).to eq "" + end + it 'does not clean created directories if other non-rscons-generated files reside there' do test_dir("simple") result = run_rscons