Skip to content

Commit cd8b8cb

Browse files
committed
Merge branch 'rj/cygwin-test-fixes-for-2.53'
Test fixup. * rj/cygwin-test-fixes-for-2.53: t0610-reftable-basics: mitigate a flaky test on cygwin t9700/test.pl: fix path type expectation on cygwin
2 parents cfa173a + 59da9f2 commit cd8b8cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

t/t0610-reftable-basics.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ test_expect_success 'ref transaction: corrupted tables cause failure' '
207207
test_commit file1 &&
208208
for f in .git/reftable/*.ref
209209
do
210-
: >"$f" || return 1
210+
test-tool truncate "$f" 0 || return 1
211211
done &&
212212
test_must_fail git update-ref refs/heads/main HEAD
213213
)

t/t9700/test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ sub adjust_dirsep {
118118

119119
# paths
120120
my $abs_git_dir = $abs_repo_dir . "/.git";
121-
if ($^O eq 'msys' or $^O eq 'cygwin') {
121+
if ($^O eq 'msys') {
122122
$abs_git_dir = `cygpath -am "$abs_repo_dir/.git"`;
123123
$abs_git_dir =~ s/\r?\n?$//;
124124
}

0 commit comments

Comments
 (0)