tests: validate getsubopt(3) expulsion

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12996
This commit is contained in:
наб
2022-03-10 20:14:28 +01:00
committed by Brian Behlendorf
parent 77cdc63d09
commit 1c41d8941c
10 changed files with 42 additions and 7 deletions
@@ -6,6 +6,7 @@ dist_pkgdata_SCRIPTS = \
zfs_list_002_pos.ksh \
zfs_list_003_pos.ksh \
zfs_list_004_neg.ksh \
zfs_list_005_neg.ksh \
zfs_list_007_pos.ksh \
zfs_list_008_neg.ksh
@@ -0,0 +1,14 @@
#!/bin/ksh -p
# SPDX-License-Identifier: 0BSD
. $STF_SUITE/include/libtest.shlib
#
# DESCRIPTION:
# zfs list -t used to accept getsubopt(3)-style filesystem=whatever;
# it doesn't anymore
#
log_mustnot zfs list -t filesystem=getsubopt
log_pass "'zfs list -t' doesn't accept =getsubopt suffixes."