summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--transaction_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/transaction_test.go b/transaction_test.go
index b5b807e..d358b0e 100644
--- a/transaction_test.go
+++ b/transaction_test.go
@@ -258,6 +258,9 @@ func TestPAM_ConfDir(t *testing.T) {
}
func TestPAM_ConfDir_FailNoServiceOrUnsupported(t *testing.T) {
+ if !CheckPamHasStartConfdir() {
+ t.Skip("this requires PAM with Conf dir support")
+ }
u, _ := user.Current()
c := Credentials{
Password: "secret",
@@ -316,6 +319,9 @@ func TestPAM_ConfDir_InfoMessage(t *testing.T) {
}
func TestPAM_ConfDir_Deny(t *testing.T) {
+ if !CheckPamHasStartConfdir() {
+ t.Skip("this requires PAM with Conf dir support")
+ }
u, _ := user.Current()
tx, err := StartConfDir("deny-service", u.Username, Credentials{}, "test-services")
ensureTransactionEnds(t, tx)