Skip to content

Commit 0586bce

Browse files
dschoGit for Windows Build Agent
authored andcommitted
t5003: use binary file from t/diff-lib/
At some stage, t5003-archive-zip wants to add a file that is not ASCII. To that end, it uses /bin/sh. But that file may actually not exist (it is too easy to forget that not all the world is Unix/Linux...)! Besides, we already have perfectly fine binary files intended for use solely by the tests. So let's use one of them instead. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7a75db3 commit 0586bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5003-archive-zip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test_expect_success \
7777
'mkdir a &&
7878
echo simple textfile >a/a &&
7979
mkdir a/bin &&
80-
cp /bin/sh a/bin &&
80+
cp "$TEST_DIRECTORY/diff-lib/test-binary-1.png" a/bin &&
8181
printf "text\r" >a/text.cr &&
8282
printf "text\r\n" >a/text.crlf &&
8383
printf "text\n" >a/text.lf &&

0 commit comments

Comments
 (0)