Re: [PATCH, g++, testsuite] Skip thread_local6.C on target using wrapper

2014-08-22 Thread Mike Stump
On Aug 21, 2014, at 6:33 PM, Tony Wang tony.w...@arm.com wrote: Thanks for your reply, and I also thought of your suggestion to wrap the _exit. The fact is that dejagnu does the wrapper to both exit() and _exit(), but it give a higher priority to the exit(), which means if you both call

Re: [PATCH, g++, testsuite] Skip thread_local6.C on target using wrapper

2014-08-21 Thread Mike Stump
On Aug 20, 2014, at 3:31 AM, Tony Wang tony.w...@arm.com wrote: It's a very simple test case modification to fix the test case failure on ARM bare metal target. thread_local6.C is a test case to test the behavior of the deconstruct of a thread local variable, and it just use _exit(0) to

RE: [PATCH, g++, testsuite] Skip thread_local6.C on target using wrapper

2014-08-21 Thread Tony Wang
Hi Mike Hum, another solution might be to wrap _exit as well. The patch is so simple and short, I'll approve the posted patch; it is a nice step forward. I'll let you contemplate if you want to try a wrap on _exit. Thanks for your reply, and I also thought of your suggestion to wrap

[PATCH, g++, testsuite] Skip thread_local6.C on target using wrapper

2014-08-20 Thread Tony Wang
Hi there, It's a very simple test case modification to fix the test case failure on ARM bare metal target. thread_local6.C is a test case to test the behavior of the deconstruct of a thread local variable, and it just use _exit(0) to override the return 1(calling exit(1)). However, such a