Skip to content

Commit 606f47a

Browse files
committed
samples: philosophers: Fix yaml
Update the yaml to remove not-yet-implemented variants, and make sure the regexp matches things the test actually prints. Signed-off-by: David Brown <[email protected]>
1 parent 35e5b2a commit 606f47a

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

samples/philosophers/sample.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,15 @@ common:
88
regex:
99
# Match the statistics, and make sure that each philosopher has at least 10 (two digits)
1010
# meals.
11-
- "^\\[\\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}\\]"
11+
# - "^\\[\\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}\\]"
12+
#
13+
# Until the stastics have been implemented, just match on one of the children thinking
14+
- "^Child 5 thinking \\(\\d+ ticks.*"
1215
tags: rust
1316
filter: CONFIG_RUST_SUPPORTED
1417
tests:
15-
sample.rust.philosopher.sysmutex:
18+
sample.rust.philosopher.semaphore:
1619
tags: introduction
1720
min_ram: 32
1821
extra_configs:
19-
- CONFIG_SYNC_SYS_MUTEX=y
20-
sample.rust.philosopher.condvar:
21-
tags: introduction
22-
min_ram: 32
23-
extra_configs:
24-
- CONFIG_SYNC_CONDVAR=y
25-
sample.rust.philosopher.channel:
26-
tags: introduction
27-
min_ram: 32
28-
extra_configs:
29-
- CONFIG_SYNC_CHANNEL=y
22+
- CONFIG_SYNC_SYS_SEMAPHORE=y

0 commit comments

Comments
 (0)