mirror of https://github.com/wolfSSL/wolfssh.git
sshd_sftp_idle_cpu_test.sh measures the connection process it forked, so it takes the wolfsshd present after the connection and not before. The old symmetric difference offered a pid that left during the window just as readily, and the smallest one wins, so an earlier test's departing child was measured through a /proc entry that no longer existed. - compare the pid sets one way, and poll for the fork rather than sampling a fixed five seconds in - let the handshake and SFTP setup finish before the baseline, so their ticks land outside the measurement rather than inside it - print both pid sets when no child is found, since the failure says nothing about which pids were considered |
||
|---|---|---|
| .. | ||
| wolfssh | ||
| wolfsshd | ||
| include.am | ||
| wolfssh-options.c | ||