2020-06-10 19:23:24 +08:00
|
|
|
sample:
|
|
|
|
description: Extended POSIX (Linux) API eventfd() example
|
|
|
|
name: eventfd
|
|
|
|
common:
|
|
|
|
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
|
|
|
tags: posix
|
|
|
|
platform_exclude: m2gl025_miv
|
|
|
|
tests:
|
|
|
|
sample.posix.eventfd:
|
|
|
|
tags: posix
|
2020-06-15 19:15:23 +08:00
|
|
|
harness: console
|
|
|
|
harness_config:
|
|
|
|
type: multi_line
|
|
|
|
ordered: true
|
|
|
|
regex:
|
|
|
|
- "Writing 1 to efd"
|
|
|
|
- "Writing 2 to efd"
|
|
|
|
- "Writing 3 to efd"
|
|
|
|
- "Writing 4 to efd"
|
|
|
|
- "Completed write loop"
|
|
|
|
- "About to read"
|
2020-06-19 17:46:29 +08:00
|
|
|
- "Read 10 \\(0xa\\) from efd"
|
2020-06-15 19:15:23 +08:00
|
|
|
- "Finished"
|