Replies: 1 comment 2 replies
-
I think we need more details. In essence this is a bug report so please provide the usual details:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm the author of libgpiod which uses BATS for its command-line tools.
I noticed that these tests - even though they use the same kernel infrastructure in the form of the
gpio-sim
module - take much longer to complete than the unit tests for the core C library. We're talking several orders of magnitude: library tests: 0,28s on my laptop, bash tests: ~26 seconds(!). Some users have even reported that it takes over 2 minutes for the tests to complete. They cover pretty much the same functionality and while it's clear that bash tests will be much slower, I don't think this is entirely normal.A quick run of
strace -c -f
reveals the following:The majority of time is spent in
wait4()
and I'm seeing a lot ofwait4(-1, 0x<snip>, WNOHANG, NULL) = -1 ECHILD (No child processes)
calls in the completestrace
output.Any idea what could be causing this?
Beta Was this translation helpful? Give feedback.
All reactions