Skip to content

Commit 74dfd94

Browse files
committed
[Fix] Test: Fix libopenmpt system information printing.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@24799 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent a0d1c34 commit 74dfd94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ void PrintHeader()
194194
{
195195
#ifdef LIBOPENMPT_BUILD
196196
std::cout << "libopenmpt test suite starting." << std::endl;
197-
std::cout << "libopenmpt library version: " << std::hex << std::setfill('0') << std::setw(8) << openmpt::get_library_version() << std::endl;
198-
std::cout << "libopenmpt core version: " << std::hex << std::setfill('0') << std::setw(8) << openmpt::get_core_version() << std::endl;
197+
std::cout << "libopenmpt library version: " << std::hex << std::setfill('0') << std::setw(8) << openmpt::get_library_version() << std::dec << std::endl;
198+
std::cout << "libopenmpt core version: " << std::hex << std::setfill('0') << std::setw(8) << openmpt::get_core_version() << std::dec << std::endl;
199199
std::cout << "libopenmpt library_version: " << openmpt::string::get("library_version") << std::endl;
200200
std::cout << "libopenmpt library_features: " << openmpt::string::get("library_features") << std::endl;
201201
std::cout << "libopenmpt core_version: " << openmpt::string::get("core_version") << std::endl;
@@ -312,7 +312,7 @@ void DoTests()
312312
}
313313
return result;
314314
};
315-
std::cout << "FCW: " << std::hex << std::setfill('0') << std::setw(4) << fpstate.x87fcw << std::endl;
315+
std::cout << "FCW: " << std::hex << std::setfill('0') << std::setw(4) << fpstate.x87fcw << std::dec << std::endl;
316316
std::cout << " " << format_rounding(fpstate.x87fcw);
317317
std::cout << " " << format_precision(fpstate.x87fcw);
318318
if (fpstate.x87_level <= 2) {
@@ -341,7 +341,7 @@ void DoTests()
341341
}
342342
return result;
343343
};
344-
std::cout << "MXCSR (mask): " << std::hex << std::setfill('0') << std::setw(8) << fpstate.mxcsr << " (" << std::hex << std::setfill('0') << std::setw(8) << fpstate.mxcsr_mask << ")" << std::endl;
344+
std::cout << "MXCSR (mask): " << std::hex << std::setfill('0') << std::setw(8) << fpstate.mxcsr << std::dec << " (" << std::hex << std::setfill('0') << std::setw(8) << fpstate.mxcsr_mask << std::dec << ")" << std::endl;
345345
std::cout << " " << format_rounding(fpstate.mxcsr);
346346
if(fpstate.mxcsr & fpstate.mxcsr_mask & mpt::arch::x86::floating_point::MXCSR_FTZ)
347347
{

0 commit comments

Comments
 (0)