Re: [PATCH v3 12/32] selftests: harness: Stop using setjmp()/longjmp()

2025-05-05 Thread Thomas Weißschuh
Hi Mark, On Mon, May 05, 2025 at 07:50:31PM +0900, Mark Brown wrote: > On Fri, Apr 11, 2025 at 11:00:36AM +0200, Thomas Weißschuh wrote: > > Usage of longjmp() was added to ensure that teardown is always run in > > commit 63e6b2a42342 ("selftests/harness: Run TEARDOWN for ASSERT failures") > > How

Re: [PATCH v3 12/32] selftests: harness: Stop using setjmp()/longjmp()

2025-05-05 Thread Mark Brown
On Fri, Apr 11, 2025 at 11:00:36AM +0200, Thomas Weißschuh wrote: > Usage of longjmp() was added to ensure that teardown is always run in > commit 63e6b2a42342 ("selftests/harness: Run TEARDOWN for ASSERT failures") > However instead of calling longjmp() to the teardown handler it is easier to > ju

[PATCH v3 12/32] selftests: harness: Stop using setjmp()/longjmp()

2025-04-11 Thread Thomas Weißschuh
Usage of longjmp() was added to ensure that teardown is always run in commit 63e6b2a42342 ("selftests/harness: Run TEARDOWN for ASSERT failures") However instead of calling longjmp() to the teardown handler it is easier to just call the teardown handler directly from __bail(). Any potential duplica