summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-09-13 23:20:47 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-09-13 23:20:47 +0200
commit702569bd10feca3f32e1b0740a24de39210b9331 (patch)
tree8cf2d4473600e3538fd33e8589935a41309ea4b8
parent4baa43e7ab2995e82ea918503b7de9c1db1d31f6 (diff)
downloadApp-BorgRestore-702569bd10feca3f32e1b0740a24de39210b9331.tar.gz
App-BorgRestore-702569bd10feca3f32e1b0740a24de39210b9331.tar.xz
handle_added_archives_with_db.t: Add file that is removed in second backup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--t/handle_added_archives_with_db.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/handle_added_archives_with_db.t b/t/handle_added_archives_with_db.t
index 908ed68..96e3e73 100644
--- a/t/handle_added_archives_with_db.t
+++ b/t/handle_added_archives_with_db.t
@@ -34,6 +34,7 @@ for my $in_memory (0,1) {
$cb->("XXX, 1970-01-01 00:00:03 etc");
$cb->("XXX, 1970-01-01 00:00:02 etc/foo");
$cb->("XXX, 1970-01-01 00:00:01 etc/foo/bar");
+ $cb->("XXX, 1970-01-01 00:00:01 etc/foo/blub");
} );
# Call the actual function we want to test
@@ -56,6 +57,7 @@ for my $in_memory (0,1) {
eq_or_diff($db->get_archives_for_path('etc'), [{archive => 'archive-1', modification_time => 3},]);
eq_or_diff($db->get_archives_for_path('etc/foo'), [{archive => 'archive-1', modification_time => 2},]);
eq_or_diff($db->get_archives_for_path('etc/foo/bar'), [{archive => 'archive-1', modification_time => 1},]);
+ eq_or_diff($db->get_archives_for_path('etc/foo/blub'), [{archive => 'archive-1', modification_time => 1},]);
eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-1', modification_time => undef},]);
@@ -147,6 +149,10 @@ for my $in_memory (0,1) {
{archive => 'archive-1', modification_time => 1},
{archive => 'archive-2', modification_time => 1},
]);
+ eq_or_diff($db->get_archives_for_path('etc/foo/blub'), [
+ {archive => 'archive-1', modification_time => 1},
+ {archive => 'archive-2', modification_time => undef},
+ ]);
eq_or_diff($db->get_archives_for_path('lulz'), [
{archive => 'archive-1', modification_time => undef},
{archive => 'archive-2', modification_time => undef},