From e1bdc0debcd085e03a8fa0dee67685cd0d69f07f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 20 Dec 2018 10:38:07 +0100 Subject: [PATCH] config2command test: diff: use /proc/self/fd /dev/fd works only through some compatibility hacks in some shells, use the correct one for Linux: /proc/self/fd/* Signed-off-by: Thomas Lamprecht --- test/run_config2command_tests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run_config2command_tests.pl b/test/run_config2command_tests.pl index 6ba70215..96e67e5d 100755 --- a/test/run_config2command_tests.pl +++ b/test/run_config2command_tests.pl @@ -137,7 +137,7 @@ sub diff($$) { my $ha = IO::Handle->new_from_fd($wa, 'w'); my $hb = IO::Handle->new_from_fd($wb, 'w'); - open my $diffproc, '-|', 'diff', '-up', "/dev/fd/$ra", "/dev/fd/$rb" + open my $diffproc, '-|', 'diff', '-up', "/proc/self/fd/$ra", "/proc/self/fd/$rb" or die "failed to run program 'diff': $!"; POSIX::close($ra); POSIX::close($rb);