Fix tests when run on s390x arch

Don't assume "mem" is always present in /sys/power/state, but hopefully
one of "mem" and "disk" is.
This commit is contained in:
Scott Talbert 2020-04-07 03:30:44 +02:00 committed by Vadim Zeitlin
parent b714a3614b
commit 2005e50b27

View File

@ -357,7 +357,7 @@ TEST_CASE("wxTextFile::Special", "[textfile][linux][special-file]")
CHECK( f.Open("/sys/power/state") );
REQUIRE( f.GetLineCount() == 1 );
INFO( "/sys/power/state contains \"" << f[0] << "\"" );
CHECK( f[0].find("mem") != wxString::npos );
CHECK( (f[0].find("mem") != wxString::npos || f[0].find("disk") != wxString::npos) );
}
}