build test spec fix for running on Windows

This commit is contained in:
Josh Holtrop 2014-06-12 13:38:15 -04:00
parent 3ab9c8723b
commit c2d4ece957

View File

@ -62,7 +62,7 @@ describe Rscons do
contents.each_line do |line| contents.each_line do |line|
replaced += yield(line) replaced += yield(line)
end end
File.open(fname, 'w') do |fh| File.open(fname, 'wb') do |fh|
fh.write(replaced) fh.write(replaced)
end end
end end
@ -153,6 +153,7 @@ describe Rscons do
'CC header.o', 'CC header.o',
"LD header#{env["PROGSUFFIX"]}", "LD header#{env["PROGSUFFIX"]}",
] ]
sleep 0.05
file_sub('header.c') {|line| line} file_sub('header.c') {|line| line}
env.process env.process
lines.should == [] lines.should == []