From: Kamalesh Babulal Date: Mon, 26 May 2025 05:29:47 +0000 (+0530) Subject: tests/gunit: disable execution with --gtest_shuffle X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9931a2a9d3a399aab35fa1bb469fcfd1ca4f382b;p=thirdparty%2Flibcgroup.git 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 --- 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!" <