diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-29 21:03:39 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-29 21:03:39 +0300 |
| commit | 8c6a9e1f6594ddbc8f2a327d05985f7eb8722d9b (patch) | |
| tree | 1e907b835e045d496a28b9e14888993e005fbb0b /tests | |
| parent | 1f2b0f71b54467a9749b0d3b6945b5322d0aa42a (diff) | |
fix: cfg linux-only api test helpers
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/api_ping.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/api_ping.rs b/tests/api_ping.rs index 25e4c98e..22834615 100644 --- a/tests/api_ping.rs +++ b/tests/api_ping.rs @@ -72,6 +72,7 @@ fn wait_for_socket(path: &Path, timeout: Duration) { panic!("socket did not appear at {}", path.display()); } +#[cfg(target_os = "linux")] fn wait_for_path(path: &Path, timeout: Duration) { let deadline = Instant::now() + timeout; while Instant::now() < deadline { @@ -102,6 +103,7 @@ fn spawn_herdr_with_path( ) } +#[cfg(target_os = "linux")] fn spawn_herdr_with_shell( config_home: &Path, runtime_dir: &Path, |
