]> git.lizzy.rs Git - rust.git/commit
rustpkg: Make rustpkg tests stop comparing dates
authorTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 26 Sep 2013 19:15:54 +0000 (12:15 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Sat, 19 Oct 2013 01:36:17 +0000 (18:36 -0700)
commit1cf029c229660efeca92cf88350bba77b5b7d902
treeb1406d88f1c492454c3c9414af36f49e19bb40de
parent6b07d885f3dd1a80ffca113925a949386371ea97
rustpkg: Make rustpkg tests stop comparing dates

Instead of scrutinizing modification times in rustpkg tests,
change output files to be read-only and detect attempts to write
to them (hack suggested by Jack). This avoids time granularity problems.

As part of this change, I discovered that some dependencies weren't
getting written correctly (involving built executables and library
files), so this patch fixes that too.

This partly addresses #9441, but one test (test_rebuild_when_needed)
is still ignored on Linux.
src/libextra/workcache.rs
src/librustpkg/conditions.rs
src/librustpkg/package_source.rs
src/librustpkg/rustpkg.rs
src/librustpkg/tests.rs
src/librustpkg/util.rs