SHA256
8
0
forked from pool/spdlog

2 Commits

3 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
From 3edc8036dbf3c7cdf0e460a913ae294c87ae90dc Mon Sep 17 00:00:00 2001
From: Vitaly <vitaly@easycoding.org>
Date: Thu, 7 Aug 2025 22:38:29 +0200
Subject: [PATCH] Run tests in the order they are declared in the source file.
(#3451)
Fixes an issue with running tests in random order in Catch2 3.9.0+.
---
tests/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 457504c31..5ba2a106a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -75,7 +75,7 @@ function(spdlog_prepare_test test_target spdlog_lib)
elseif(SPDLOG_SANITIZE_THREAD)
spdlog_enable_thread_sanitizer(${test_target})
endif()
- add_test(NAME ${test_target} COMMAND ${test_target})
+ add_test(NAME ${test_target} COMMAND ${test_target} --order decl)
set_tests_properties(${test_target} PROPERTIES RUN_SERIAL ON)
endfunction()

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 15 10:09:57 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Add spdlog-catch-3_9-tests-compatibility.patch: Run tests in the
order they are declared in the source file for compatiblity with
Catch2 >= 3.9.0 (gh#gabime/spdlog#3451).
-------------------------------------------------------------------
Sun Jun 15 18:43:13 UTC 2025 - Bernd Ritter <comrad@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package spdlog
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@ Group: Development/Libraries/C and C++
URL: https://github.com/gabime/spdlog
Source0: https://github.com/gabime/%{name}/archive/refs/tags/v%{version}.tar.gz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM
Patch0: https://github.com/gabime/spdlog/commit/3edc8036dbf3c7cdf0e460a913ae294c87ae90dc.patch#/spdlog-catch-3_9-tests-compatibility.patch
BuildRequires: cmake >= 3.10
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++ >= 13