Skip to content

Commit

Permalink
win32: do not test for ctime difference
Browse files Browse the repository at this point in the history
ctime is file creation time on windows and is not updated on "touch".
  • Loading branch information
ThomasWaldmann committed Oct 5, 2024
1 parent 64e7095 commit 5818c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/testsuite/archiver/diff_cmd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def get_changes(filename, data):
unexpected = {"type": "modified", "added": 0, "removed": 0}
assert unexpected not in get_changes("input/file_touched", joutput)
if not content_only:
assert {"ctime", "mtime"}.issubset({c["type"] for c in get_changes("input/file_touched", joutput)})
assert {"mtime"}.issubset({c["type"] for c in get_changes("input/file_touched", joutput)})
else:
# And if we're doing content-only, don't show the file at all.
assert not any(get_changes("input/file_touched", joutput))
Expand Down

0 comments on commit 5818c14

Please sign in to comment.