Use /proc/cpuinfo instead of /proc/diskstats in Linux file tests
The file /proc/diskstats doesn't seem to contain anything on some Travis builds, so try using /proc/cpuinfo instead.
This commit is contained in:
@@ -347,7 +347,7 @@ TEST_CASE("wxTextFile::Special", "[textfile][linux][special-file]")
|
||||
SECTION("/proc")
|
||||
{
|
||||
wxTextFile f;
|
||||
CHECK( f.Open("/proc/diskstats") );
|
||||
CHECK( f.Open("/proc/cpuinfo") );
|
||||
CHECK( f.GetLineCount() > 1 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user