Blame fix-tests-s390x.patch
|
Scott Talbert |
374de8 |
From 1da9e342c29b7be94fe66b510ed2d71a003c16e4 Mon Sep 17 00:00:00 2001
|
|
Scott Talbert |
374de8 |
From: Scott Talbert <swt@techie.net>
|
|
Scott Talbert |
374de8 |
Date: Tue, 7 Apr 2020 03:30:44 +0200
|
|
Scott Talbert |
374de8 |
Subject: [PATCH] Fix tests when run on s390x arch
|
|
Scott Talbert |
374de8 |
|
|
Scott Talbert |
374de8 |
---
|
|
Scott Talbert |
374de8 |
tests/textfile/textfiletest.cpp | 2 +-
|
|
Scott Talbert |
374de8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Scott Talbert |
374de8 |
|
|
Scott Talbert |
374de8 |
diff --git a/tests/textfile/textfiletest.cpp b/tests/textfile/textfiletest.cpp
|
|
Scott Talbert |
374de8 |
index eda450d1f3..d76cb1b244 100644
|
|
Scott Talbert |
374de8 |
--- a/tests/textfile/textfiletest.cpp
|
|
Scott Talbert |
374de8 |
+++ b/tests/textfile/textfiletest.cpp
|
|
Scott Talbert |
374de8 |
@@ -357,7 +357,7 @@ TEST_CASE("wxTextFile::Special", "[textfile][linux][special-file]")
|
|
Scott Talbert |
374de8 |
CHECK( f.Open("/sys/power/state") );
|
|
Scott Talbert |
374de8 |
REQUIRE( f.GetLineCount() == 1 );
|
|
Scott Talbert |
374de8 |
INFO( "/sys/power/state contains \"" << f[0] << "\"" );
|
|
Scott Talbert |
374de8 |
- CHECK( f[0].find("mem") != wxString::npos );
|
|
Scott Talbert |
374de8 |
+ CHECK( (f[0].find("mem") != wxString::npos || f[0].find("disk") != wxString::npos) );
|
|
Scott Talbert |
374de8 |
}
|
|
Scott Talbert |
374de8 |
}
|
|
Scott Talbert |
374de8 |
|
|
Scott Talbert |
374de8 |
--
|
|
Scott Talbert |
374de8 |
2.25.1
|
|
Scott Talbert |
374de8 |
|