mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 14:41:43 +00:00
Fix test setup for 32bit platforms, partial fix for #196
This commit is contained in:
parent
4ab4ecc7af
commit
8b2b91fb0c
1 changed files with 5 additions and 1 deletions
|
@ -120,8 +120,12 @@ def create_test_files(self):
|
||||||
"""
|
"""
|
||||||
# File
|
# File
|
||||||
self.create_regular_file('empty', size=0)
|
self.create_regular_file('empty', size=0)
|
||||||
|
# next code line raises OverflowError on 32bit cpu (raspberry pi 2):
|
||||||
# 2600-01-01 > 2**64 ns
|
# 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('file1', size=1024 * 80)
|
||||||
self.create_regular_file('flagfile', size=1024)
|
self.create_regular_file('flagfile', size=1024)
|
||||||
# Directory
|
# Directory
|
||||||
|
|
Loading…
Reference in a new issue