Commit 5ba7eed2 authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

samples: philosophers: test more scenarios



Enable 2 additional documented scenarios:
- preempt only
- coop only

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent d6cc2909
Loading
Loading
Loading
Loading
+21 −10
Original line number Diff line number Diff line
sample:
  name: Dining Philosophers
tests:
  test:
    tags: samples
common:
  extra_args: "-DDEBUG_PRINTF=1"
  tags: samples
  harness: console
  harness_config:
    type: multi_line
      repeat: 10
    ordered: false
    regex:
      - ".*STARVING.*"
      - ".*DROPPED ONE FORK.*"
      - ".*THINKING.*"
      - ".*EATING.*"
tests:
  test:
    tags: samples
  test_preempt_only:
    extra_configs:
      - CONFIG_NUM_PREEMPT_PRIORITIES=6
      - CONFIG_NUM_COOP_PRIORITIES=0
      - CONFIG_BT=n
  test_coop_only:
    extra_configs:
      - CONFIG_NUM_PREEMPT_PRIORITIES=0
      - CONFIG_NUM_COOP_PRIORITIES=6
+2 −1
Original line number Diff line number Diff line
@@ -264,8 +264,9 @@ static void display_demo_description(void)
void main(void)
{
	display_demo_description();

#if CONFIG_TIMESLICING
	k_sched_time_slice_set(5000, 0);
#endif

	init_objects();
	start_threads();