fix: fixed-width float formatting, fix test_32bit_support on Linux CI

Float values now use a fixed 7-char body (digits.decimals + f suffix)
that adapts decimal places to the integer magnitude. Removes the
variable-width 'g' format and sign-space prefix.

Set QT_QPA_PLATFORM=offscreen for test_32bit_support so it no longer
crashes on headless Linux CI without an X display.
This commit is contained in:
IChooseYOu
2026-03-01 14:02:40 -07:00
committed by IChooseYou
parent ed8a44917b
commit cae599a0c6
3 changed files with 67 additions and 26 deletions

View File

@@ -251,6 +251,7 @@ if(BUILD_TESTING)
${CMAKE_SOURCE_DIR}/plugins/RemoteProcessMemory)
target_link_libraries(test_32bit_support PRIVATE ${QT}::Core ${QT}::Widgets ${QT}::Test)
add_test(NAME test_32bit_support COMMAND test_32bit_support)
set_tests_properties(test_32bit_support PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
if(WIN32)
add_executable(test_import_pdb tests/test_import_pdb.cpp