-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Portability
-
Fully Compatible
-
ALL
-
Platforms E (01/08/16)
LogSeverity::Log().toInt() returns a possibly negative integer, which is cast into a char in several places, with the assumption that char's are signed by default. This assumption is not true for all platforms; GCC on ppc64 and s390x treats char's as unsigned by default. This causes the unit test server_options_test to fail on those platforms.
The fix is to explicitly declare LogComponentSettings::_minimumLoggedSeverity as a signed char array.
- is duplicated by
-
SERVER-21909 Unittest failure in server_options_test on PPC64LE
- Closed