# HG changeset patch # User Jim Hague # Date 1367330193 -3600 # Node ID 9ff91ff2797daed9d18714330641ff1fa2818f42 # Parent 509a9dd1553cdf3079874f4db3cd753386bb37e3 tests: AIX can't handle negative date in test-dirstate.t test-dirstate.t fails on AIX in the absurd date test. AIX touch errors on any date prior to 1970. AIX mktime() gives an error on such dates, so the problem is deeper than touch and attempts to work around touch in Python failed. Give up. Add an AIX test to hghave and skip the absurd date test on AIX. [ original upstream message ] diff -r 509a9dd1553c -r 9ff91ff2797d tests/hghave.py --- a/tests/hghave.py Thu Jun 13 01:36:58 2013 +0200 +++ b/tests/hghave.py Tue Apr 30 14:56:33 2013 +0100 @@ -274,6 +274,9 @@ def has_msys(): return os.getenv('MSYSTEM') +def has_aix(): + return sys.platform.startswith("aix") + checks = { "true": (lambda: True, "yak shaving"), "false": (lambda: False, "nail clipper"), @@ -314,4 +317,5 @@ "unix-permissions": (has_unix_permissions, "unix-style permissions"), "windows": (has_windows, "Windows"), "msys": (has_msys, "Windows with MSYS"), + "aix": (has_aix, "AIX"), }