-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tmain: add a case for testing the behavior of readtags with no action
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
5 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# Copyright: 2024 Masatake YAMATO | ||
# License: GPL-2 | ||
|
||
BUILDDIR=$2 | ||
READTAGS=$3 | ||
#V="valgrind --leak-check=full --track-origins=yes -v" | ||
V= | ||
|
||
. ../utils.sh | ||
|
||
if ! [ -x "${READTAGS}" ]; then | ||
skip "no readtags" | ||
fi | ||
|
||
f=${BUILDDIR}/tmp-readtags-error-no-action-$$ | ||
rm -f "$f" | ||
|
||
{ | ||
${READTAGS} -t input.tags | ||
} 2> "$f" | ||
|
||
s=$? | ||
|
||
sed 's|.*\(readtags[^:]*\):|\1:|' < "$f" 1>&2 | ||
rm "$f" | ||
|
||
exit $s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
readtags: no action specified: specify one of NAME, -l or -D |
Empty file.