Subject: bug#22487: tests failures for coreutils-8.25 on AIX-7.1

From: Assaf Gordon <[email-masked]>
Date: Thu, 28 Jan 2016 17:26:53 -0500

Hello,

The following tests fail on AIX-7.1:

FAIL: tests/misc/kill.sh
========================
...
++ env kill -l 15
+ test EXIT = TERM
+ fail=1

FAIL: tests/misc/stdbuf.sh
==========================
...
*** exp	Thu Jan 28 10:06:22 2016
--- out	Thu Jan 28 10:06:25 2016
***************
*** 1 ****
--- 1,2 ----
   1
+ 2
+ rm -f diff.out
+ false
+ time_fail=1
++ expr 6 + 1
+ attempt=7
++ expr 32 '*' 2
+ num_sleeps=64
+ test 7 -le 6
+ test 1 = 0
+ fail=1

(related to failed 7 attempts)

FAIL: tests/misc/sync.sh
========================
...
*** exp	Thu Jan 28 10:06:33 2016
--- err	Thu Jan 28 10:06:33 2016
***************
*** 1 ****
! sync: error opening 'norw': Permission denied
--- 1 ----
! sync: error opening 'norw': Is a directory
+ rm -f diff.out
+ false
+ fail=1

(seems like different error message running 'sync' on a directory without permissions).

FAIL: tests/touch/trailing-slash
================================
...
+ returns_ 1 touch no-file/
touch: setting times of 'no-file/': No such file or directory
+ returns_ 1 touch file/
+ fail=1
+ returns_ 1 touch dangling/
touch: setting times of 'dangling/': No such file or directory
+ returns_ 1 touch loop/
touch: setting times of 'loop/': Too many levels of symbolic links
+ returns_ 1 touch link1/
+ fail=1
+ touch dir/
+ touch -c no-file/
+ returns_ 1 touch -c file/
+ fail=1
+ touch -c dangling/
+ returns_ 1 touch -c loop/
touch: setting times of 'loop/': Too many levels of symbolic links
+ returns_ 1 touch -c link1/
+ fail=1

Lastly,
    tests/cp/parent-perm-race.sh
hangs and never terminates.
The log contains this error:

    $ cat tests/cp/parent-perm-race.log
    ...
    + for attr in mode ownership
    + mkfifo_or_skip_ mode/fifo
    + test 1 = 1
    + mkfifo mode/fifo
    + pid=35324056
    + cp --preserve=mode -R --copy-contents --parents mode d
    cp: cannot open 'mode/fifo' for reading: Invalid argument

logs attached.

regards,
  - assaf