mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-01-04 16:50:18 +01:00
tests: Add PAM timeout test
This commit is contained in:
parent
c43134e36f
commit
2d0bed6b13
1 changed files with 7 additions and 0 deletions
|
|
@ -136,6 +136,13 @@ class TestPamFprintd(dbusmock.DBusTestCase):
|
|||
self.assertRegex(res.errors[1], r'Failed to match fingerprint')
|
||||
self.assertRegex(res.errors[2], r'Failed to match fingerprint')
|
||||
|
||||
def test_pam_timeout(self):
|
||||
self.setup_device()
|
||||
|
||||
tc = pypamtest.TestCase(pypamtest.PAMTEST_AUTHENTICATE, expected_rv=PAM_AUTHINFO_UNAVAIL)
|
||||
res = pypamtest.run_pamtest("toto", "fprintd-pam-test", [tc], [ 'unused' ])
|
||||
self.assertRegex(res.info[1], r'Verification timed out')
|
||||
|
||||
if __name__ == '__main__':
|
||||
if 'PAM_WRAPPER_SERVICE_DIR' not in os.environ:
|
||||
print('Cannot run test without environment set correctly, run "make check" instead')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue