Mercurial > crates > nonstick
comparison testharness/src/lib.rs @ 127:c77846f3a979
GET CTEST WORKING.
This will verify that the functions we're exporting are correct.
It has been a nightmare.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Mon, 30 Jun 2025 22:56:26 -0400 |
parents | 98a624cacd82 |
children |
comparison
equal
deleted
inserted
replaced
126:57c812e308bd | 127:c77846f3a979 |
---|---|
9 impl<M: PamHandleModule> PamModule<M> for TestHarness { | 9 impl<M: PamHandleModule> PamModule<M> for TestHarness { |
10 fn authenticate(_handle: &mut M, _args: Vec<&CStr>, _flags: Flags) -> nonstick::Result<()> { | 10 fn authenticate(_handle: &mut M, _args: Vec<&CStr>, _flags: Flags) -> nonstick::Result<()> { |
11 Ok(()) | 11 Ok(()) |
12 } | 12 } |
13 | 13 |
14 fn account_management(_handle: &mut M, _args: Vec<&CStr>, _flags: Flags) -> nonstick::Result<()> { | 14 fn account_management( |
15 _handle: &mut M, | |
16 _args: Vec<&CStr>, | |
17 _flags: Flags, | |
18 ) -> nonstick::Result<()> { | |
15 Ok(()) | 19 Ok(()) |
16 } | 20 } |
17 } | 21 } |
18 | 22 |
19 pam_hooks!(TestHarness); | 23 pam_hooks!(TestHarness); |