|
From: | Bernhard Voelker |
Subject: | Re: [PATCH] tests: avoid false failure when comparing /proc/cpuinfo |
Date: | Thu, 16 Oct 2014 10:57:31 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 |
On 10/16/2014 10:34 AM, Pádraig Brady wrote:
On 10/16/2014 09:24 AM, Bernhard Voelker wrote:The MHz number in /proc/cpuinfo may change, thus leading to a false positive failure when comparing the expected against the actual output file. * tests/misc/head-c.sh: Replace the actual MHz number in the files to be compared by a placeholder.
Oh right good one. It's probably better to use an invariant file rather than messing with sed and GHz and possible other variant parts. How about /proc/version
Well, /proc/cpuinfo is a multi-line file while /proc/version is not. Maybe it's better to use another multi-line one which does not change too often - like /proc/filesystems ? Thanks & have a nice day, Berny
[Prev in Thread] | Current Thread | [Next in Thread] |