Re: [PATCH v2 4/6] Force test suite traps to be cleared for NonStop ksh
- From
Stefan Beller <sbeller@google.com>
- Date
- Jan 19, 2018, 19:55 UTC
- Message-ID
- <CAGZ79kYft+6k3YjyMn32-gJwFEwCpEYKJ=WnksqJdQaozm5PQw@mail.gmail.com>
- In-Reply-To
- <20180119173406.13324-6-randall.s.becker@rogers.com>
On Fri, Jan 19, 2018 at 9:34 AM, <randall.s.becker@rogers.com> wrote:
> From: "Randall S. Becker" <rsbecker@nexbridge.com> > > * t/lib-git-daemon.sh: fix incompatibilities with ksh traps not being > cleared automatically on platform.
Which platform? Do we need to guard it for other platforms? (I guess we don't we have traps in some other places and it is POSIX)
Show 30 quoted lines
> This caused tests to seem to fail
> while actually succeeding.
>
> Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
> ---
> t/lib-git-daemon.sh | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/t/lib-git-daemon.sh b/t/lib-git-daemon.sh
> index 987d40680..955beecd9 100644
> --- a/t/lib-git-daemon.sh
> +++ b/t/lib-git-daemon.sh
> @@ -68,6 +68,7 @@ start_git_daemon() {
> test_skip_or_die $GIT_TEST_GIT_DAEMON \
> "git daemon failed to start"
> fi
> + trap '' EXIT
> }
>
> stop_git_daemon() {
> @@ -89,4 +90,6 @@ stop_git_daemon() {
> fi
> GIT_DAEMON_PID=
> rm -f git_daemon_output
> +
> + trap '' EXIT
> }
> --
> 2.16.0.31.gf1a482c
>