Skip to content

Commit a64cbf6

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 e3a95d8 commit a64cbf6

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
@@ -87,7 +87,7 @@ test_expect_success \
8787
'mkdir a &&
8888
echo simple textfile >a/a &&
8989
mkdir a/bin &&
90-
cp /bin/sh a/bin &&
90+
cp "$TEST_DIRECTORY/diff-lib/test-binary-1.png" a/bin &&
9191
printf "text\r" >a/text.cr &&
9292
printf "text\r\n" >a/text.crlf &&
9393
printf "text\n" >a/text.lf &&

0 commit comments

Comments
 (0)