mirror of https://github.com/borgbackup/borg.git
add test for issue #3688
This commit is contained in:
parent
646c0ea117
commit
0a46d3330c
|
@ -3407,6 +3407,7 @@ class DiffArchiverTestCase(ArchiverTestCaseBase):
|
||||||
|
|
||||||
# Setup files for the second snapshot
|
# Setup files for the second snapshot
|
||||||
self.create_regular_file('file_added', size=2048)
|
self.create_regular_file('file_added', size=2048)
|
||||||
|
self.create_regular_file('file_empty_added', size=0)
|
||||||
os.unlink('input/file_removed')
|
os.unlink('input/file_removed')
|
||||||
os.unlink('input/file_removed2')
|
os.unlink('input/file_removed2')
|
||||||
os.unlink('input/file_replaced')
|
os.unlink('input/file_replaced')
|
||||||
|
@ -3481,6 +3482,9 @@ class DiffArchiverTestCase(ArchiverTestCaseBase):
|
||||||
if are_hardlinks_supported():
|
if are_hardlinks_supported():
|
||||||
assert 'added 2.05 kB input/hardlink_added' in output
|
assert 'added 2.05 kB input/hardlink_added' in output
|
||||||
|
|
||||||
|
# check if a diff between non-existent and empty new file is found
|
||||||
|
assert 'added 0 B input/file_empty_added' in output
|
||||||
|
|
||||||
# The inode has two links and both of them are deleted. They should
|
# The inode has two links and both of them are deleted. They should
|
||||||
# appear as two deleted files.
|
# appear as two deleted files.
|
||||||
assert 'removed 256 B input/file_removed' in output
|
assert 'removed 256 B input/file_removed' in output
|
||||||
|
|
Loading…
Reference in New Issue