1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 14:41:43 +00:00

PR #254 - Merge branch 'tests_32bit_platform' into merge

This commit is contained in:
Thomas Waldmann 2015-03-26 01:36:43 +01:00
commit dc58cf9b35

View file

@ -120,8 +120,12 @@ def create_test_files(self):
"""
# File
self.create_regular_file('empty', size=0)
# next code line raises OverflowError on 32bit cpu (raspberry pi 2):
# 2600-01-01 > 2**64 ns
os.utime('input/empty', (19880895600, 19880895600))
#os.utime('input/empty', (19880895600, 19880895600))
# thus, we better test with something not that far in future:
# 2038-01-19 (1970 + 2^31 - 1 seconds) is the 32bit "deadline":
os.utime('input/empty', (2**31 - 1, 2**31 - 1))
self.create_regular_file('file1', size=1024 * 80)
self.create_regular_file('flagfile', size=1024)
# Directory