changeset 177:9925fa14021b

Fix testharness to build warning- and error-free.
author Paul Fisher <paul@pfish.zone>
date Wed, 30 Jul 2025 18:00:14 -0400
parents 0730f5f2ee2a
children 6c75fb621b55
files Cargo.lock testharness/Cargo.toml testharness/build.rs
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Cargo.lock	Wed Jul 30 17:53:31 2025 -0400
+++ b/Cargo.lock	Wed Jul 30 18:00:14 2025 -0400
@@ -106,6 +106,7 @@
 version = "0.0.8-alpha0"
 dependencies = [
  "anyhow",
+ "libpam-sys-impls",
  "nonstick",
  "test-cdylib",
  "thiserror",
--- a/testharness/Cargo.toml	Wed Jul 30 17:53:31 2025 -0400
+++ b/testharness/Cargo.toml	Wed Jul 30 18:00:14 2025 -0400
@@ -12,7 +12,6 @@
 crate-type = ["cdylib"]
 
 [features]
-default = ["basic-ext"]
 basic-ext = ["nonstick/basic-ext"]
 linux-pam-ext = ["nonstick/linux-pam-ext"]
 openpam-ext = ["nonstick/openpam-ext"]
@@ -22,6 +21,9 @@
 [dependencies]
 nonstick = { path = "..", features = ["link"], default-features = false }
 
+[build-dependencies]
+libpam-sys-impls = { path = "../libpam-sys/libpam-sys-impls" }
+
 [dev-dependencies]
 anyhow = "1.0.98"
 test-cdylib = "1.1.0"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testharness/build.rs	Wed Jul 30 18:00:14 2025 -0400
@@ -0,0 +1,3 @@
+fn main() {
+    libpam_sys_impls::enable_pam_impl_cfg();
+}
\ No newline at end of file