]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure when comparing /proc files
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 16 Oct 2014 10:23:04 +0000 (12:23 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Fri, 17 Oct 2014 06:02:57 +0000 (08:02 +0200)
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/

tests/misc/head-c.sh

index 807e965446f86537f3acff4c66f789480f86c327..1015c229529e11ade81ea0d96acf497c592d93ad 100755 (executable)
@@ -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_