[PATCH] sppps01: Add test case for early returns of pps_event()
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Jun 30 06:26:41 UTC 2022
On 15/06/2022 15:08, Gabriel Moyano wrote:
> ---
> testsuites/sptests/sppps01/init.c | 42 +++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/testsuites/sptests/sppps01/init.c b/testsuites/sptests/sppps01/init.c
> index 996a3a1e16..ee3fe1645b 100644
> --- a/testsuites/sptests/sppps01/init.c
> +++ b/testsuites/sptests/sppps01/init.c
> @@ -76,6 +76,48 @@ T_TEST_CASE( WaitPPSEventDefaultHandler )
> T_eq_int( status, ETIMEDOUT );
> }
>
> +static int wokenup = 0;
> +
> +static void fake_wakeup(struct pps_state *pps)
> +{
> + wokenup++;
> +}
I would move the wokenup into struct test_pps_device.
In the existing code, use rtems_task_exit() instead of
rtems_task_delete(rtems_task_self()).
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list