From 9931a2a9d3a399aab35fa1bb469fcfd1ca4f382b Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Mon, 26 May 2025 10:59:47 +0530 Subject: [PATCH] tests/gunit: disable execution with --gtest_shuffle Some Google tests rely on being run in a specific order, with certain tests depending on the successful completion of previous ones. Passing the --gtest_shuffle option can break this sequence, potentially leading to test failures or inconsistent results. Until the test suite is updated to support randomized execution, skip running tests when --gtest_shuffle is used. Acked-by: Tom Hromatka Signed-off-by: Kamalesh Babulal --- tests/gunit/gtest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gunit/gtest.cpp b/tests/gunit/gtest.cpp index b48200b0..65020915 100644 --- a/tests/gunit/gtest.cpp +++ b/tests/gunit/gtest.cpp @@ -12,5 +12,9 @@ int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); + if (testing::GTEST_FLAG(shuffle)) { + std::cout << "--gtest_shuffle option is not supported!" <