diff --git a/pam/integration-tests/gdm_test.go b/pam/integration-tests/gdm_test.go index f98e6c36c..a3bef7836 100644 --- a/pam/integration-tests/gdm_test.go +++ b/pam/integration-tests/gdm_test.go @@ -365,9 +365,19 @@ func TestGdmModuleWithCWrapper(t *testing.T) { t.Parallel() t.Cleanup(pam_test.MaybeDoLeakCheck) - wrapperLibPath := buildPAMWrapperModule(t) - libPath := buildPAMModule(t) - testGdmModule(t, wrapperLibPath, []string{libPath}) + execLib := buildExecModule(t) + cliPath := buildPAMClient(t) + moduleArgs := []string{"--exec-debug"} + if !testutils.IsVerbose() { + logFile := prepareFileLogging(t, "exec-module.log") + saveArtifactsForDebug(t, []string{logFile}) + moduleArgs = append(moduleArgs, "--exec-log", logFile) + } + if env := testutils.CoverDirEnv(); env != "" { + moduleArgs = append(moduleArgs, "--exec-env", testutils.CoverDirEnv()) + } + moduleArgs = append(moduleArgs, "--", cliPath) + testGdmModule(t, execLib, moduleArgs) } func buildPAMModule(t *testing.T) string {