Skip to content

Commit 68573a7

Browse files
committed
t5003: use binary file from t/lib-diff/
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 84d1bfc commit 68573a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5003-archive-zip.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ test_expect_success \
8888
'mkdir a &&
8989
echo simple textfile >a/a &&
9090
mkdir a/bin &&
91-
cp /bin/sh a/bin &&
91+
cp "$TEST_DIRECTORY/lib-diff/test-binary-1.png" a/bin &&
9292
printf "text\r" >a/text.cr &&
9393
printf "text\r\n" >a/text.crlf &&
9494
printf "text\n" >a/text.lf &&

0 commit comments

Comments
 (0)