summaryrefslogtreecommitdiffstats
path: root/share/tests/libc-str-cpy-stp/stpe/004/test.sh
blob: 7eccc45e5b431350a0aa3a4bcda47483c9609d9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;