diff options
Diffstat (limited to 'share/tests/libc-str-cpy-stp/stpe/006/test.sh')
-rwxr-xr-x | share/tests/libc-str-cpy-stp/stpe/006/test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/share/tests/libc-str-cpy-stp/stpe/006/test.sh b/share/tests/libc-str-cpy-stp/stpe/006/test.sh new file mode 100755 index 0000000..7eccc45 --- /dev/null +++ b/share/tests/libc-str-cpy-stp/stpe/006/test.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + + +set -Eefuo pipefail; +shopt -s lastpipe; + + +./test \ +| if ! grep -q '^Truncated:$'; then + >&2 ./test; + exit 2; +fi; + + +./test \ +| if ! grep -q '^10: Hello worl$'; then + >&2 ./test; + exit 3; +fi; |