test not rebuilding for only a timestamp change
This commit is contained in:
parent
833cc5915e
commit
82cdca77f1
@ -89,4 +89,19 @@ describe Rscons do
|
||||
lines = build_testdir
|
||||
lines.should == []
|
||||
end
|
||||
|
||||
it "does not rebuild a C module when only the file's timestampe has changed" do
|
||||
lines = test_dir('header')
|
||||
`./header`.should == "The value is 2\n"
|
||||
lines.should == [
|
||||
'CC header.o',
|
||||
'LD header',
|
||||
]
|
||||
header_c = File.read('header.c')
|
||||
File.open('header.c', 'w') do |fh|
|
||||
fh.write(header_c)
|
||||
end
|
||||
lines = build_testdir
|
||||
lines.should == []
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user