summaryrefslogtreecommitdiffstats
path: root/pw/tests/pw_groupshow.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pw/tests/pw_groupshow.sh')
-rwxr-xr-xpw/tests/pw_groupshow.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/pw/tests/pw_groupshow.sh b/pw/tests/pw_groupshow.sh
new file mode 100755
index 0000000..2ba53d6
--- /dev/null
+++ b/pw/tests/pw_groupshow.sh
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+# Import helper functions
+. $(atf_get_srcdir)/helper_functions.shin
+
+
+# Test negative uid are still valid
+# PR: 196514
+atf_test_case show_group_with_negative_number
+show_group_with_negative_number_body() {
+ populate_etc_skel
+ atf_check -s exit:0 \
+ -o inline:"wheel:*:0:root\n" \
+ ${PW} groupshow -n wheel -g -1
+}
+
+atf_init_test_cases() {
+ atf_add_test_case show_group_with_negative_number
+}