From 702569bd10feca3f32e1b0740a24de39210b9331 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 13 Sep 2018 23:20:47 +0200 Subject: handle_added_archives_with_db.t: Add file that is removed in second backup Signed-off-by: Florian Pritz --- t/handle_added_archives_with_db.t | 6 ++++++ 1 file changed, 6 insertions(+) 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}, -- cgit v1.2.3-24-g4f1b