pamTest is failing
pamTest is failing both locally and in CI.
Local:
[ctest] Test project /home/merritt/Development/kde/build/kscreenlocker
[ctest] Start 4: ksmserver-pamTest
[ctest] 1/1 Test #4: ksmserver-pamTest ................***Failed 4.87 sec
[ctest] ********* Start testing of PamTest *********
[ctest] Config: Using QtTest library 6.6.0, Qt 6.6.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.1 20231011 (Red Hat 13.2.1-4)), fedora 39
[ctest] PASS : PamTest::initTestCase()
[ctest] PWRAP_DEBUG[<unknown> (837174)] - pwrap_init: Initialize pam_wrapper
[ctest] PWRAP_DEBUG[<unknown> (837174)] - copy_confdir: Copy config files from /home/merritt/Development/kde/src/kscreenlocker/autotests/data to /tmp/pam.a
[ctest] PWRAP_DEBUG[<unknown> (837174)] - pwrap_init: Successfully initialized pam_wrapper
[ctest] PWRAP_DEBUG[<unknown> (837174)] - pwrap_load_lib_handle: Opened /usr/lib64/libpam.so.0
[ctest]
[ctest] PWRAP_ERROR[<unknown> (837174)] - SYSLOG(3): _pam_init_handlers: no default config other
[ctest] PWRAP_ERROR[<unknown> (837174)] - SYSLOG(3): error reading PAM configuration file
[ctest] PWRAP_ERROR[<unknown> (837174)] - SYSLOG(3): pam_start: failed to initialize handlers
[ctest] QWARN : PamTest::testLogin() kscreenlocker_greet: [PAM worker test_service] start: error starting, result code: 26 (Critical error - immediate abort)
[ctest] FAIL! : PamTest::testLogin() 'promptForSecretSpy.wait()' returned FALSE. ()
[ctest] Loc: [/home/merritt/Development/kde/src/kscreenlocker/autotests/pamtest.cpp(48)]
[ctest] PASS : PamTest::cleanupTestCase()
[ctest] Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 4864ms
[ctest] ********* Finished testing of PamTest *********
[ctest]
[ctest]
[ctest] 0% tests passed, 1 tests failed out of 1
[ctest]
[ctest] Total Test time (real) = 4.87 sec
[ctest]
[ctest] The following tests FAILED:
[ctest] 4 - ksmserver-pamTest (Failed)
[ctest] Errors while running CTest
[proc] The command: /usr/bin/ctest -j18 -C Debug -T test --output-on-failure -R ^ksmserver-pamTest$ exited with code: 8
[ctest] CTest finished with return code 8
CI:
==2352==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.