GNU/Hurd fails a test for env because LD_ORIGIN_PATH is defined. If it
is unset it passes. I attached a patch.

Collin

>From a8e2a18459bb5ab34064e2da2135a48fec141d66 Mon Sep 17 00:00:00 2001
From: Collin Funk <[email protected]>
Date: Mon, 13 Jan 2025 19:43:12 -0800
Subject: [PATCH] tests: env-S.pl: unset GNU/Hurd env vars

* tests/misc/env-S.pl: Unset LD_ORIGIN_PATH.
---
 tests/env/env-S.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/env/env-S.pl b/tests/env/env-S.pl
index b25014965..48268b41c 100755
--- a/tests/env/env-S.pl
+++ b/tests/env/env-S.pl
@@ -39,6 +39,9 @@ my $cf = 'SYSTEMROOT';
 exists $ENV{$cf} and $env .= " -u$cf";
 my $cf = 'WINDIR';
 exists $ENV{$cf} and $env .= " -u$cf";
+# Likewise for these GNU/Hurd env vars
+my $cf = 'LD_ORIGIN_PATH';
+exists $ENV{$cf} and $env .= " -u$cf";
 
 my @Tests =
     (
-- 
2.47.1

Reply via email to