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/
This commit is contained in:
Bernhard Voelker committed 2014-10-17 08:02:57 +02:00
1 parent 437f247649
commit f1466d180b
1 file changed
+1 -1
+1 -1
View File
@@ -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_