coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests: avoid a test hang on AIX


From: Pádraig Brady
Subject: Re: [PATCH] tests: avoid a test hang on AIX
Date: Sat, 17 Jan 2026 23:15:18 +0000
User-agent: Mozilla Thunderbird Beta

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

[Prev in Thread] Current Thread [Next in Thread]