Add test.

This commit is contained in:
deboard 2024-01-05 23:20:47 -05:00
parent e5858e27d9
commit ed6aad7835
1 changed files with 14 additions and 0 deletions

14
tests/scripts/stderr1.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
## test for issue 2561
OUTPUT=$(mktemp)
BAT=bat
code=$($BAT /tmp 2> $OUTPUT; cat $OUTPUT | grep error; echo $?)
if [[ $code == 1 ]]; then
echo "stderr test fsil"
exit 1
fi
exit 0