[exim-dev] [exim-cvs] Testsuite: try workaround for missing …

Top Page
Delete this message
Reply to this message
Author: Martin D Kealey
Date:  
To: exim-dev
Subject: [exim-dev] [exim-cvs] Testsuite: try workaround for missing /dev/stderr symlink on Alpine
(Originally I replied to <exim-dev@???> but that bounced, with
instructions to send here.)

Using /proc/self/fd/2 not going to work anywhere except Linux.

Why not simply "cat DIR/spool/log/WHATEVER >&2" since that's clearly the
intention?

-Martin

On Tue, 5 Sep 2023, 00:17 Exim Git Commits Mailing List, <
exim-cvs@???> wrote:

> Gitweb:
> https://git.exim.org/exim.git/commitdiff/09b9a4dfe0e57982531a6dcf311be0c1b84e001a
> Commit:     09b9a4dfe0e57982531a6dcf311be0c1b84e001a
> Parent:     f5759daf16a28e5b395849b2ce4762f3bb46d3ce
> Author:     Jeremy Harris <jgh146exb@???>
> AuthorDate: Mon Sep 4 10:47:35 2023 +0100
> Committer:  Jeremy Harris <jgh146exb@???>
> CommitDate: Mon Sep 4 10:47:35 2023 +0100

>
>     Testsuite: try workaround for missing /dev/stderr symlink on Alpine
> ---
>  test/scripts/0000-Basic/0628 | 2 +-
>  test/scripts/0000-Basic/0629 | 2 +-
>  test/scripts/0000-Basic/0630 | 2 +-
>  test/scripts/0000-Basic/0631 | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)

>
> diff --git a/test/scripts/0000-Basic/0628 b/test/scripts/0000-Basic/0628
> index a78d512a1..2397032fc 100644
> --- a/test/scripts/0000-Basic/0628
> +++ b/test/scripts/0000-Basic/0628
> @@ -66,6 +66,6 @@ killdaemon
> 1
> cat DIR/spool/log/serverdebuglog_1
> #
> -cp DIR/spool/log/serverdebuglog_2 /dev/stderr
> +cp DIR/spool/log/serverdebuglog_2 /proc/self/fd/2
> #
> no_msglog_check
> diff --git a/test/scripts/0000-Basic/0629 b/test/scripts/0000-Basic/0629
> index 758b7b1a6..e99dbbe29 100644
> --- a/test/scripts/0000-Basic/0629
> +++ b/test/scripts/0000-Basic/0629
> @@ -21,6 +21,6 @@ QUIT
> #
> killdaemon
> #
> -cp DIR/spool/log/serverdebuglog_rcpt /dev/stderr
> +cp DIR/spool/log/serverdebuglog_rcpt /proc/self/fd/2
> #
> no_msglog_check
> diff --git a/test/scripts/0000-Basic/0630 b/test/scripts/0000-Basic/0630
> index 55a5290ba..fd858773c 100644
> --- a/test/scripts/0000-Basic/0630
> +++ b/test/scripts/0000-Basic/0630
> @@ -25,6 +25,6 @@ QUIT
> #
> killdaemon
> #
> -cp DIR/spool/log/serverdebuglog_router /dev/stderr
> +cp DIR/spool/log/serverdebuglog_router /proc/self/fd/2
> #
> no_msglog_check
> diff --git a/test/scripts/0000-Basic/0631 b/test/scripts/0000-Basic/0631
> index 75cf31f35..da67d5100 100644
> --- a/test/scripts/0000-Basic/0631
> +++ b/test/scripts/0000-Basic/0631
> @@ -25,6 +25,6 @@ QUIT
> #
> killdaemon
> #
> -cp DIR/spool/log/serverdebuglog_acl /dev/stderr
> +cp DIR/spool/log/serverdebuglog_acl /proc/self/fd/2
> #
> no_msglog_check
>
> --
> ## subscription configuration (requires account):
> ##
> https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
> ## unsubscribe (doesn't require an account):
> ## exim-cvs-unsubscribe@???
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/