diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-06-21 03:43:39 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-07-17 14:23:59 +0530 |
commit | b5a79b491efc54848d31f4d230fedca38dd4b846 (patch) | |
tree | 6fcdc773b138d30bc3c0f73cc19a7d7a9a889216 | |
parent | 92c2bb75195c054dcdeae09f7d42393856a91748 (diff) | |
download | meson-b5a79b491efc54848d31f4d230fedca38dd4b846.zip meson-b5a79b491efc54848d31f4d230fedca38dd4b846.tar.gz meson-b5a79b491efc54848d31f4d230fedca38dd4b846.tar.bz2 |
tests: Restore sleep for ninja on HFS+ (macOS)
QuLogic discovered that HFS+ only stores dates in uint32 seconds since
the epoch, so ninja cannot report sub-1s resolution timestamps there.
Sometime in the future Apple FS will become widely-available and we
will have to add a filesystem check at startup.
https://developer.apple.com/legacy/library/technotes/tn/tn1150.html#HFSPlusDates
-rwxr-xr-x | run_tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py index cf8221c..b17e0cb 100755 --- a/run_tests.py +++ b/run_tests.py @@ -105,7 +105,10 @@ def get_backend_commands(backend, debug=False): def ensure_backend_detects_changes(backend): # We're using a ninja with QuLogic's patch for sub-1s resolution timestamps - if 'MESON_FIXED_NINJA' in os.environ: + # and not running on HFS+ which only stores dates in seconds: + # https://developer.apple.com/legacy/library/technotes/tn/tn1150.html#HFSPlusDates + # FIXME: Upgrade Travis image to Apple FS when that becomes available + if 'MESON_FIXED_NINJA' in os.environ and not mesonlib.is_osx(): return # This is needed to increase the difference between build.ninja's # timestamp and the timestamp of whatever you changed due to a Ninja |