Skip to content
Permalink
Browse files

samples: philosophers: pause before main() exit

On some systems the sample was failing validation because
the coverage data would be emitted before the sample had
a chance to print anything else.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jun 5, 2019
1 parent 930a5f8 commit 4d4cc4ddc3000763730ef0b9720988d1db98a4e8
Showing with 14 additions and 0 deletions.
  1. +7 −0 samples/philosophers/src/main.c
  2. +7 −0 samples/portability/cmsis_rtos_v2/philosophers/src/main.c
@@ -253,4 +253,11 @@ void main(void)

init_objects();
start_threads();

#ifdef CONFIG_COVERAGE
/* Wait a few seconds before main() exit, giving the sample the
* opportunity to dump some output before coverage data gets emitted
*/
k_sleep(5000);
#endif
}
@@ -252,4 +252,11 @@ void main(void)
display_demo_description();
init_objects();
start_threads();

#ifdef CONFIG_COVERAGE
/* Wait a few seconds before main() exit, giving the sample the
* opportunity to dump some output before coverage data gets emitted
*/
k_sleep(5000);
#endif
}

0 comments on commit 4d4cc4d

Please sign in to comment.
You can’t perform that action at this time.