Re: [PATCH] samples/cdtest: Test execeptions during system init

2022-07-14 Thread Chris Johns
On 14/7/2022 4:02 pm, Sebastian Huber wrote: > On 14/07/2022 02:31, Chris Johns wrote: >> On 13/7/2022 6:42 pm, Sebastian Huber wrote: >>> On 01/07/2022 12:02, Sebastian Huber wrote: +static void early_exception() +{ +    try +    { +  throw "early exception"; + 

Re: [PATCH] samples/cdtest: Test execeptions during system init

2022-07-14 Thread Sebastian Huber
On 14/07/2022 02:31, Chris Johns wrote: On 13/7/2022 6:42 pm, Sebastian Huber wrote: On 01/07/2022 12:02, Sebastian Huber wrote: +static void early_exception() +{ +    try +    { +  throw "early exception"; +    } +    catch( const char *e ) +    { +  rtems_test_assert(strcmp(e, "early

Re: [PATCH] samples/cdtest: Test execeptions during system init

2022-07-13 Thread Chris Johns
On 13/7/2022 6:42 pm, Sebastian Huber wrote: > On 01/07/2022 12:02, Sebastian Huber wrote: >> +static void early_exception() >> +{ >> +    try >> +    { >> +  throw "early exception"; >> +    } >> +    catch( const char *e ) >> +    { >> +  rtems_test_assert(strcmp(e, "early exception") ==

Re: [PATCH] samples/cdtest: Test execeptions during system init

2022-07-13 Thread Sebastian Huber
On 01/07/2022 12:02, Sebastian Huber wrote: +static void early_exception() +{ +try +{ + throw "early exception"; +} +catch( const char *e ) +{ + rtems_test_assert(strcmp(e, "early exception") == 0); + throw "early exception 2"; +} +} + +static void

Re: [PATCH] samples/cdtest: Test execeptions during system init

2022-07-03 Thread Chris Johns
OK Thanks Chris On 1/7/2022 8:02 pm, Sebastian Huber wrote: > Update #4668. > Update #4672. > --- > testsuites/samples/cdtest/main.cc | 44 --- > 1 file changed, 35 insertions(+), 9 deletions(-) > > diff --git a/testsuites/samples/cdtest/main.cc >

[PATCH] samples/cdtest: Test execeptions during system init

2022-07-01 Thread Sebastian Huber
Update #4668. Update #4672. --- testsuites/samples/cdtest/main.cc | 44 --- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/testsuites/samples/cdtest/main.cc b/testsuites/samples/cdtest/main.cc index 894e404ba1..44cdaf84bb 100644 ---