]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: avoid FP failure when cp fails for /proc/cpuinfo
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 9 Jan 2014 01:14:17 +0000 (02:14 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Thu, 9 Jan 2014 01:14:17 +0000 (02:14 +0100)
commitd1342119790fc9c12729db50ee5db9248be82408
treee5fbf2a22a481eb2b1dcd83b0af6a24e788b9cb2
parent299924fc224b4419350e3b7749650178a509206a
tests: avoid FP failure when cp fails for /proc/cpuinfo

On emulated aarch64 systems like in the qemu-based OpenBuildService
of openSUSE, cp fails to copy /proc/cpuinfo because the inode number
changes between the initial stat() call and copying the file:

  $ cp /proc/cpuinfo exp
  cp: skipping file '/proc/cpuinfo', as it was \
  replaced while being copied

* tests/cp/proc-zero-len.sh: When cp fails, check on the above
error message to skip the test.
tests/cp/proc-zero-len.sh