@@ -21,7 +21,7 @@ test_expect_success 'prune stale packs' '
2121 orig_pack=$(echo .git/objects/pack/*.pack) &&
2222 : > .git/objects/tmp_1.pack &&
2323 : > .git/objects/tmp_2.pack &&
24- test-chmtime -86501 .git/objects/tmp_1.pack &&
24+ test-chmtime = -86501 .git/objects/tmp_1.pack &&
2525 git prune --expire 1.day &&
2626 test -f $orig_pack &&
2727 test -f .git/objects/tmp_2.pack &&
@@ -39,7 +39,7 @@ test_expect_success 'prune --expire' '
3939 git prune --expire=1.hour.ago &&
4040 test $((1 + $before)) = $(git count-objects | sed "s/ .*//") &&
4141 test -f $BLOB_FILE &&
42- test-chmtime -86500 $BLOB_FILE &&
42+ test-chmtime = -86500 $BLOB_FILE &&
4343 git prune --expire 1.day &&
4444 test $before = $(git count-objects | sed "s/ .*//") &&
4545 ! test -f $BLOB_FILE
@@ -53,11 +53,11 @@ test_expect_success 'gc: implicit prune --expire' '
5353 BLOB_FILE=.git/objects/$(echo $BLOB | sed "s/^../&\//") &&
5454 test $((1 + $before)) = $(git count-objects | sed "s/ .*//") &&
5555 test -f $BLOB_FILE &&
56- test-chmtime -$((86400*14-30)) $BLOB_FILE &&
56+ test-chmtime = -$((86400*14-30)) $BLOB_FILE &&
5757 git gc &&
5858 test $((1 + $before)) = $(git count-objects | sed "s/ .*//") &&
5959 test -f $BLOB_FILE &&
60- test-chmtime -$((86400*14+1)) $BLOB_FILE &&
60+ test-chmtime = -$((86400*14+1)) $BLOB_FILE &&
6161 git gc &&
6262 test $before = $(git count-objects | sed "s/ .*//") &&
6363 ! test -f $BLOB_FILE
0 commit comments