Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
wxWidgets-3_2.32019
wxWidgets-3_2-fix-building-fault-S390.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wxWidgets-3_2-fix-building-fault-S390.patch of Package wxWidgets-3_2.32019
diff -Nura wxWidgets-3.1.5/tests/file/filetest.cpp wxWidgets-3.1.5_new/tests/file/filetest.cpp --- wxWidgets-3.1.5/tests/file/filetest.cpp 2021-04-13 06:23:58.000000000 +0800 +++ wxWidgets-3.1.5_new/tests/file/filetest.cpp 2024-01-03 16:45:13.063182610 +0800 @@ -158,6 +158,7 @@ CHECK( fileProc.ReadAll(&s) ); CHECK( !s.empty() ); + if ( wxFile::Exists("/sys/power/state") ) { // All files in /sys have the size of one kernel page, even if they don't // have that much data in them. const long pageSize = sysconf(_SC_PAGESIZE); @@ -168,6 +169,7 @@ CHECK( fileSys.ReadAll(&s) ); CHECK( !s.empty() ); CHECK( s.length() < pageSize ); + } } #endif // __LINUX__ diff -Nura wxWidgets-3.1.5/tests/filename/filenametest.cpp wxWidgets-3.1.5_new/tests/filename/filenametest.cpp --- wxWidgets-3.1.5/tests/filename/filenametest.cpp 2024-01-03 15:05:19.307669150 +0800 +++ wxWidgets-3.1.5_new/tests/filename/filenametest.cpp 2024-01-03 15:07:55.178523575 +0800 @@ -1121,9 +1121,11 @@ INFO( "size of /proc/kcore=" << size ); CHECK( size > 0 ); + if ( wxFile::Exists("/sys/power/state") ) { // All files in /sys are one page in size, irrespectively of the size of // their actual contents. CHECK( wxFileName::GetSize("/sys/power/state") == sysconf(_SC_PAGESIZE) ); + } } #endif // __LINUX__ diff -Nura wxWidgets-3.1.5/tests/textfile/textfiletest.cpp wxWidgets-3.1.5_new/tests/textfile/textfiletest.cpp --- wxWidgets-3.1.5/tests/textfile/textfiletest.cpp 2021-04-13 06:23:58.000000000 +0800 +++ wxWidgets-3.1.5_new/tests/textfile/textfiletest.cpp 2024-01-03 15:08:48.163153936 +0800 @@ -353,6 +353,7 @@ CHECK( f.GetLineCount() > 1 ); } + if ( wxFile::Exists("/sys/power/state") ) { SECTION("/sys") { wxTextFile f; @@ -361,6 +362,7 @@ INFO( "/sys/power/state contains \"" << f[0] << "\"" ); CHECK( (f[0].find("mem") != wxString::npos || f[0].find("disk") != wxString::npos) ); } + } } #endif // __LINUX__
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor