fix variable references that expand to arrays in build target sources - fix #20

This commit is contained in:
josh committed 2015-01-20 21:26:45 -05:00
1 parent cb3cc9a0de
commit 76610a07a9
3 files changed
+12 -1

No files matched your search

+10
View File
@@ -754,4 +754,14 @@ EOF
expect(File.read("pp")).to match(%r{abc88xyz}m)
end
it "allows construction variable references which expand to arrays in sources of a build target" do
test_dir("simple")
Rscons::Environment.new do |env|
env["sources"] = Dir["*.c"]
env.Program("simple", "${sources}")
end
expect(File.exists?("simple.o")).to be_truthy
expect(`./simple`).to eq "This is a simple C program\n"
end
end