Re: [PATCH] Windows: Fix intermittent failures of t7701
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 27, 2009, 16:42 UTC
- Message-ID
- <alpine.DEB.1.00.0901271740320.3586@pacific.mpi-cbg.de>
- In-Reply-To
- <497F076F.8060509@viscovery.net>
Hi,
On Tue, 27 Jan 2009, Johannes Sixt wrote:
> We want to catch failures of test-chmtime; but since it appears in a > pipe, we cannot access its exit code. Therefore, we at least make sure > that it prints time stamps of all files that are passed on its command > line.
I use this trick in my valgrind series:
($PROGRAM; echo $? > exit.code) | $OTHER_PROGRAM && test 0 = "$(cat exit.code)"
Ciao, Dscho