diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-21 21:09:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-06-21 21:09:36 +0000 |
commit | 94f4f116e695ad4f5d2c2e50412bcb7b639e5ee7 (patch) | |
tree | 8d6431fb56032a4cf0c350a711bf135c13a88b06 /testsuites/libtests | |
parent | 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-94f4f116e695ad4f5d2c2e50412bcb7b639e5ee7.tar.bz2 |
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloc02/init.c, malloc02/malloc02.doc: Enable malloc dirty helper.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r-- | testsuites/libtests/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/libtests/malloc02/init.c | 18 | ||||
-rw-r--r-- | testsuites/libtests/malloc02/malloc02.doc | 1 |
3 files changed, 10 insertions, 13 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog index 8f53539d46..bc05468c42 100644 --- a/testsuites/libtests/ChangeLog +++ b/testsuites/libtests/ChangeLog @@ -1,5 +1,9 @@ 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * malloc02/init.c, malloc02/malloc02.doc: Enable malloc dirty helper. + +2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com> + * Makefile.am, configure.ac: Add test for deferring free() from ISR and for deferred free() processing. * malloc02/.cvsignore, malloc02/Makefile.am, malloc02/init.c, diff --git a/testsuites/libtests/malloc02/init.c b/testsuites/libtests/malloc02/init.c index 939fdcd748..7a00cb9082 100644 --- a/testsuites/libtests/malloc02/init.c +++ b/testsuites/libtests/malloc02/init.c @@ -53,19 +53,10 @@ rtems_task Init( status = rtems_timer_fire_after( timer, 10, test_operation_from_isr, NULL ); directive_failed( status, "timer_fire_after failed" ); - /* XXX pick a delay method */ -#if 0 + /* delay to let timer fire */ status = rtems_task_wake_after( 20 ); -#else - { - rtems_interval start; - rtems_interval now; - start = rtems_clock_get_ticks_since_boot(); - do { - now = rtems_clock_get_ticks_since_boot(); - } while ( (now-start) < 100 ); - } -#endif + directive_failed( status, "timer_wake_after failed" ); + if ( !operation_performed_from_tsr ) { puts( "Operation from ISR did not get processed\n" ); rtems_test_exit( 0 ); @@ -84,8 +75,9 @@ rtems_task Init( #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE +#define CONFIGURE_MALLOC_DIRTY +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_MAXIMUM_TASKS 1 #define CONFIGURE_MAXIMUM_TIMERS 1 diff --git a/testsuites/libtests/malloc02/malloc02.doc b/testsuites/libtests/malloc02/malloc02.doc index 35ce0d340b..10ea45a0b4 100644 --- a/testsuites/libtests/malloc02/malloc02.doc +++ b/testsuites/libtests/malloc02/malloc02.doc @@ -22,3 +22,4 @@ concepts: + adding to the deferred free operation chain + processing the deferred free operation chain ++ enable the malloc dirty option |