On 17/01/2026 22:27, Collin Funk wrote:
On AIX, I noticed that tests/cksum/cksum-c.sh hangs. This was caused
by the recent addition of tests using 'strace'. AIX has an unrelated
program of the same name [1]. The important line in the documentation
is this:

     Once initiated, the strace command continues to execute until
     terminated by the user.

The only occurance of strace we have with three to seven arguments,
which will cause it to continue executing, is in cksum-c.sh. However,
handling it only there seems poor since we will likely introduce
similar tests later elsewhere.

Therefore, I added a new function 'uses_strace_' in init.cfg. If
'strace true' does not execute sucessfully, it defines a function
'strace' which just invokes 'false'. That will prevent further
'strace' tests from being run.

I will leave this one uncomitted for a bit, in case anyone has better
ideas to handle this.

[1] https://www.ibm.com/docs/en/aix/7.2.0?topic=s-strace-command

Oh interesting. Yes that should work:

  $ strace true; echo $?
  usage: strace [mid sid level] ...
  1

thanks!
Padraig


Reply via email to