From 26f0e5017f28fecbd746fddbf370c968999923a2 Mon Sep 17 00:00:00 2001 From: Justin Becker Date: Thu, 17 Sep 2026 11:25:38 -0700 Subject: [PATCH] Fix Linux test failure, and formatting --- FEXCore/Source/Interface/Core/JIT/JIT.cpp | 3 ++- unittests/FEXLinuxTests/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/FEXCore/Source/Interface/Core/JIT/JIT.cpp b/FEXCore/Source/Interface/Core/JIT/JIT.cpp index 2a29153a9..514027ecd 100644 --- a/FEXCore/Source/Interface/Core/JIT/JIT.cpp +++ b/FEXCore/Source/Interface/Core/JIT/JIT.cpp @@ -72,7 +72,8 @@ LDIV(uint64_t SrcHigh, uint64_t SrcLow, int64_t Divisor) { #ifndef _WIN32 -static std::optional RDRANDFallback(uint64_t Reseed) { +static std::optional +RDRANDFallback(uint64_t Reseed) { uint64_t Value {}; FHU::Syscalls::getrandom(&Value, sizeof(Value), 0); return Value; diff --git a/unittests/FEXLinuxTests/CMakeLists.txt b/unittests/FEXLinuxTests/CMakeLists.txt index 5851004d8..573beb268 100644 --- a/unittests/FEXLinuxTests/CMakeLists.txt +++ b/unittests/FEXLinuxTests/CMakeLists.txt @@ -64,8 +64,8 @@ function(AddTests Tests BinDirectory Bitness) endif() if(TEST_NAME STREQUAL "rdrand") - # Force use of the software falllback to excercise that path - set_property(TEST "${TEST_CASE}.jit.flt" APPEND PROPERTY ENVIRONMENT "FEX_HOSTFEATURES=disablerng") + # Force use of the software fallback to exercise that path + set_property(TEST "${TEST_CASE}.jit.flt" APPEND PROPERTY ENVIRONMENT "FEX_HOSTFEATURES=disablerng;FEX_SOFTWARERNG=1") endif() if(TEST_NAME STREQUAL "vulkan_procaddr")