summaryrefslogtreecommitdiffstats
path: root/share/tests/libc-str-cpy-stp/stpe/005/test.sh
blob: 1cadf3ae5e979d416313589b2bf66c63b9e14fe7 (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 '^0: $'; then
	>&2 ./test;
	exit 3;
fi;