@@ -21,7 +21,7 @@ test_expect_success 'prune stale packs' '
21
21
orig_pack=$(echo .git/objects/pack/*.pack) &&
22
22
: > .git/objects/tmp_1.pack &&
23
23
: > .git/objects/tmp_2.pack &&
24
- test-chmtime -86501 .git/objects/tmp_1.pack &&
24
+ test-chmtime = -86501 .git/objects/tmp_1.pack &&
25
25
git prune --expire 1.day &&
26
26
test -f $orig_pack &&
27
27
test -f .git/objects/tmp_2.pack &&
@@ -39,7 +39,7 @@ test_expect_success 'prune --expire' '
39
39
git prune --expire=1.hour.ago &&
40
40
test $((1 + $before)) = $(git count-objects | sed "s/ .*//") &&
41
41
test -f $BLOB_FILE &&
42
- test-chmtime -86500 $BLOB_FILE &&
42
+ test-chmtime = -86500 $BLOB_FILE &&
43
43
git prune --expire 1.day &&
44
44
test $before = $(git count-objects | sed "s/ .*//") &&
45
45
! test -f $BLOB_FILE
@@ -53,11 +53,11 @@ test_expect_success 'gc: implicit prune --expire' '
53
53
BLOB_FILE=.git/objects/$(echo $BLOB | sed "s/^../&\//") &&
54
54
test $((1 + $before)) = $(git count-objects | sed "s/ .*//") &&
55
55
test -f $BLOB_FILE &&
56
- test-chmtime -$((86400*14-30)) $BLOB_FILE &&
56
+ test-chmtime = -$((86400*14-30)) $BLOB_FILE &&
57
57
git gc &&
58
58
test $((1 + $before)) = $(git count-objects | sed "s/ .*//") &&
59
59
test -f $BLOB_FILE &&
60
- test-chmtime -$((86400*14+1)) $BLOB_FILE &&
60
+ test-chmtime = -$((86400*14+1)) $BLOB_FILE &&
61
61
git gc &&
62
62
test $before = $(git count-objects | sed "s/ .*//") &&
63
63
! test -f $BLOB_FILE
0 commit comments