aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tst-pam_set_item.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tst-pam_set_item.c b/tests/tst-pam_set_item.c
index 3457b49c..607fbf28 100644
--- a/tests/tst-pam_set_item.c
+++ b/tests/tst-pam_set_item.c
@@ -144,6 +144,16 @@ main (void)
}
}
+ /* 5: try to set PAM_SERVICE to NULL */
+ retval = pam_set_item (pamh, PAM_SERVICE, NULL);
+ if (retval != PAM_BAD_ITEM)
+ {
+ fprintf (stderr,
+ "pam_set_item (pamh, PAM_SERVICE, NULL) returned %d\n",
+ retval);
+ return 1;
+ }
+
pam_end (pamh, 0);
return 0;