summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2014-10-16 12:23:04 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2014-10-17 08:02:57 +0200
commitf1466d180bee2daf682d49215247f00e400d5bae (patch)
tree39926696651fd08c079d0fe30c1d40be14ab00fd /tests/misc
parent437f24764963ca2935e1bce368667f8270275a4b (diff)
downloadcoreutils-f1466d180bee2daf682d49215247f00e400d5bae.tar.xz
tests: avoid false failure when comparing /proc files
At least the MHz number in /proc/cpuinfo may change, thus leading to a false positive failure when comparing the expected against the actual output file. Use an invariant file instead: /proc/version. * tests/misc/head-c.sh: s/cpuinfo/version/
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/head-c.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/head-c.sh b/tests/misc/head-c.sh
index 807e96544..1015c2295 100755
--- a/tests/misc/head-c.sh
+++ b/tests/misc/head-c.sh
@@ -44,7 +44,7 @@ esac
# Make sure it works on funny files in /proc and /sys.
-for file in /proc/cpuinfo /sys/kernel/profiling; do
+for file in /proc/version /sys/kernel/profiling; do
if test -r $file; then
cp -f $file copy &&
head -c -1 copy > exp1 || framework_failure_