mirror of
https://https.git.savannah.gnu.org/git/patch.git
synced 2026-01-29 02:44:25 +00:00
Since the code is identical when just checking if a utility is present on the system or not, we can factorize it. Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
19 lines
478 B
Plaintext
19 lines
478 B
Plaintext
# Copyright (C) 2009, 2011-2012 Free Software Foundation, Inc.
|
|
#
|
|
# Copying and distribution of this file, with or without modification,
|
|
# in any medium, are permitted without royalty provided the copyright
|
|
# notice and this notice are preserved.
|
|
|
|
. $srcdir/test-lib.sh
|
|
|
|
require cat
|
|
use_local_patch
|
|
use_tmpdir
|
|
|
|
# ==============================================================
|
|
|
|
check 'patch -px || echo "status: $?"' <<EOF
|
|
$PATCH: **** strip count x is not a number
|
|
status: 2
|
|
EOF
|