summaryrefslogtreecommitdiffhomepage
path: root/tests/zash/zos-builtins.sh
blob: 83266454f296c407081391d5b1dc88eab75e1aba (plain)
1
2
3
4
5
6
7
8
9
10
# Usage errors of the z/OS-only builtins tag, alloc and free.  These
# exist only in z/OS builds (and in make mvs-asan's build); elsewhere the
# test is skipped.  The real work is in tests/zos/builtins.sh.
[ "$(command -v tag)" = tag ] || exit 77
tag 2>/dev/null; echo "no file: $?"
tag -q f 2>/dev/null; echo "bad option: $?"
tag -t f 2>/dev/null; echo "-t without -c: $?"
tag -c 2>/dev/null; echo "-c without code set: $?"
alloc 2>/dev/null; echo "alloc alone: $?"
free 2>/dev/null; echo "free alone: $?"