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:
parent
2005e50b27
commit
a776a9112e
2 changed files with 2 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ TEST_CASE("wxFile::Special", "[file][linux][special-file]")
|
|||
// for reading) and usually we don't have the permissions to do it.
|
||||
|
||||
// This file is not seekable and has 0 size, but can still be read.
|
||||
wxFile fileProc("/proc/diskstats");
|
||||
wxFile fileProc("/proc/cpuinfo");
|
||||
CHECK( fileProc.IsOpened() );
|
||||
|
||||
wxString s;
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue