Re: [PATCH] t0005: add test for trap handling from deeply nested function calls
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Mar 26, 2010, 20:19 UTC
- Message-ID
- <201003262119.45110.j6t@kdbg.org>
- In-Reply-To
- <vm2zHZjrZOha7LnIM_9fAEAvwVZrJtZlAI9f2XI_VUsdqr51ihAMW68a5BT9tvMdRDSqk6GYlSE@cipher.nrlssc.navy.mil>
On Freitag, 26. März 2010, Brandon Casey wrote:
Show 7 quoted lines
> +test_expect_success 'trap triggered in deeply nested function works
> correctly' ' + (atrap () { exit 0; }
> + func3 () { exit 1; }
> + func2 () { func3; }
> + func1 () { trap atrap EXIT; func2; }
> + func1)
> +'What do you want to achieve with this test? That /usr/xpg4/bin/sh is not used on Solaris?
If git-bisect triggers this bug in /usr/xpg4/bin/sh and if this is our shell of choice on Solaris, wouldn't it be better to work around it in git-bisect?
-- Hannes