Hi Marco,

On Mon, 17 Feb 2025 09:28:11 +0100
Marco Atzeri wrote:
> Hi Takashi,
> 
> I think there is still issue on pipe redirection output lost.
> I have two cases where during package tests the test are reported as 
> failures as the output is missing, while running the test stand alone 
> the output is produced as expected.
> 
> The simplest one is relative to gdbm
> https://cygwin.com/cgi-bin2/jobs.cgi?id=9408
> 
> the four tests that are failing are the ones in which a input is also 
> provided
> --------------------------------------------------------------
> gdbmtool
> 
>   30: Input from file                                 FAILED 
> (gdbmtool00.at:20)
>   31: Input from stdin                                FAILED 
> (gdbmtool01.at:20)
>   32: Input from command line                         FAILED 
> (gdbmtool02.at:20)
>   33: Initialization file                             FAILED 
> (gdbmtool03.at:19)
> --------------------------------------------------------------

This is not a pipe problem, but just a path problem for gdbmtool.
Please try the patch attached.

-- 
Takashi Yano <takashi.y...@nifty.ne.jp>
--- origsrc/gdbm-1.24/tests/testsuite   2024-07-02 22:49:14.000000000 +0900
+++ src/gdbm-1.24/tests/testsuite       2025-02-18 20:42:01.412623400 +0900
@@ -3475,7 +3475,7 @@ quit
 _ATEOF
 
 
-gdbmtool -f input | sed 's/^GDBM version.*/GDBM version/'
+../../../tools/gdbmtool -f input | sed 's/^GDBM version.*/GDBM version/'
 "
 at_fn_check_prepare_notrace 'an embedded newline' "gdbmtool00.at:20"
 ( $at_check_trace;
@@ -3488,7 +3488,7 @@ quit
 _ATEOF
 
 
-gdbmtool -f input | sed 's/^GDBM version.*/GDBM version/'
+../../../tools/gdbmtool -f input | sed 's/^GDBM version.*/GDBM version/'
 
 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 at_status=$? at_failed=false
@@ -3531,7 +3531,7 @@ quit
 _ATEOF
 
 
-gdbmtool < input | sed 's/^GDBM version.*/GDBM version/'
+../../../tools/gdbmtool < input | sed 's/^GDBM version.*/GDBM version/'
 "
 at_fn_check_prepare_notrace 'an embedded newline' "gdbmtool01.at:20"
 ( $at_check_trace;
@@ -3544,7 +3544,7 @@ quit
 _ATEOF
 
 
-gdbmtool < input | sed 's/^GDBM version.*/GDBM version/'
+../../../tools/gdbmtool < input | sed 's/^GDBM version.*/GDBM version/'
 
 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 at_status=$? at_failed=false
@@ -3579,12 +3579,12 @@ at_xfail=no
 { set +x
 printf "%s\n" "$at_srcdir/gdbmtool02.at:20:
 gtload t.db < /dev/null
-gdbmtool t.db status \\; version | sed 's/^GDBM version.*/GDBM version/'
+../../../tools/gdbmtool t.db status \\; version | sed 's/^GDBM version.*/GDBM 
version/'
 "
 at_fn_check_prepare_notrace 'an embedded newline' "gdbmtool02.at:20"
 ( $at_check_trace;
 gtload t.db < /dev/null
-gdbmtool t.db status \; version | sed 's/^GDBM version.*/GDBM version/'
+../../../tools/gdbmtool t.db status \; version | sed 's/^GDBM version.*/GDBM 
version/'
 
 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 at_status=$? at_failed=false
@@ -3621,7 +3621,7 @@ cat >.gdbmtoolrc <<'_ATEOF'
 open t.db
 _ATEOF
 
-gdbmtool <<EOT
+../../../tools/gdbmtool <<EOT
 status
 EOT
 "
@@ -3631,7 +3631,7 @@ cat >.gdbmtoolrc <<'_ATEOF'
 open t.db
 _ATEOF
 
-gdbmtool <<EOT
+../../../tools/gdbmtool <<EOT
 status
 EOT
 
-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to