public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/raft] epel10: Remove unused patched
@ 2026-10-30 21:48 Reto Gantenbein
0 siblings, 0 replies; only message in thread
From: Reto Gantenbein @ 2026-10-30 21:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/raft
Branch : epel10
Commit : 317f4eb3568799623df1a221e8187a3b2b4a456e
Author : Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
Date : 2024-03-08T15:35:43+01:00
Stats : +0/-93 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/raft/c/317f4eb3568799623df1a221e8187a3b2b4a456e?branch=epel10
Log:
Remove unused patched
---
diff --git a/0.11.3-Revert-test-runner-Define-order-of-constructors.patch b/0.11.3-Revert-test-runner-Define-order-of-constructors.patch
deleted file mode 100644
index 834c632..0000000
--- a/0.11.3-Revert-test-runner-Define-order-of-constructors.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-commit 837624858668b2f5897cc7a97abca001d87cadd0
-Author: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
-Date: Sat Feb 12 14:25:20 2022 +0100
-
- Revert "test runner: Define order of constructors."
-
- This reverts commit a520dd6601ee7f9bb1662816f494b9ff9ad0a257.
-
-diff --git a/test/lib/runner.h b/test/lib/runner.h
-index f56a80b..32aebea 100644
---- a/test/lib/runner.h
-+++ b/test/lib/runner.h
-@@ -56,47 +56,47 @@ extern int _main_suites_n;
-
- /* Declare the MunitSuite[] and the MunitTest[] arrays that compose the test
- * suite identified by S. */
--#define SUITE__DECLARE(S) \
-- static MunitSuite _##S##_suites[SUITE__CAP]; \
-- static MunitTest _##S##_tests[SUITE__CAP]; \
-- static MunitTestSetup _##S##_setup = NULL; \
-- static MunitTestTearDown _##S##_tear_down = NULL; \
-- static int _##S##_suites_n = 0; \
-- static int _##S##_tests_n = 0; \
-- __attribute__((constructor(101))) static void _##S##_init(void) \
-- { \
-- memset(_##S##_suites, 0, sizeof(_##S##_suites)); \
-- memset(_##S##_tests, 0, sizeof(_##S##_tests)); \
-- (void)_##S##_suites_n; \
-- (void)_##S##_tests_n; \
-- (void)_##S##_setup; \
-- (void)_##S##_tear_down; \
-+#define SUITE__DECLARE(S) \
-+ static MunitSuite _##S##_suites[SUITE__CAP]; \
-+ static MunitTest _##S##_tests[SUITE__CAP]; \
-+ static MunitTestSetup _##S##_setup = NULL; \
-+ static MunitTestTearDown _##S##_tear_down = NULL; \
-+ static int _##S##_suites_n = 0; \
-+ static int _##S##_tests_n = 0; \
-+ __attribute__((constructor)) static void _##S##_init(void) \
-+ { \
-+ memset(_##S##_suites, 0, sizeof(_##S##_suites)); \
-+ memset(_##S##_tests, 0, sizeof(_##S##_tests)); \
-+ (void)_##S##_suites_n; \
-+ (void)_##S##_tests_n; \
-+ (void)_##S##_setup; \
-+ (void)_##S##_tear_down; \
- }
-
- /* Set the tests and suites attributes of the next available slot of the
- * MunitSuite[] array of S1 to the MunitTest[] and MunitSuite[] arrays of S2,
- * using the given PREFIX. */
--#define SUITE__ADD_CHILD(S1, PREFIX, S2) \
-- __attribute__((constructor(102))) static void _##S1##_##S2##_init(void) \
-- { \
-- int n = _##S1##_suites_n; \
-- _##S1##_suites[n].prefix = PREFIX; \
-- _##S1##_suites[n].tests = _##S2##_tests; \
-- _##S1##_suites[n].suites = _##S2##_suites; \
-- _##S1##_suites[n].iterations = 0; \
-- _##S1##_suites[n].options = 0; \
-- _##S1##_suites_n = n + 1; \
-+#define SUITE__ADD_CHILD(S1, PREFIX, S2) \
-+ __attribute__((constructor)) static void _##S1##_##S2##_init(void) \
-+ { \
-+ int n = _##S1##_suites_n; \
-+ _##S1##_suites[n].prefix = PREFIX; \
-+ _##S1##_suites[n].tests = _##S2##_tests; \
-+ _##S1##_suites[n].suites = _##S2##_suites; \
-+ _##S1##_suites[n].iterations = 0; \
-+ _##S1##_suites[n].options = 0; \
-+ _##S1##_suites_n = n + 1; \
- }
-
- /* Add a test case to the MunitTest[] array of suite S. */
--#define TEST__ADD_TO_SUITE(S, C, SETUP, TEAR_DOWN, OPTIONS, PARAMS) \
-- __attribute__((constructor(103))) static void _##S##_tests_##C##_init(void) \
-- { \
-- MunitTest *tests = _##S##_tests; \
-- int n = _##S##_tests_n; \
-- TEST__SET_IN_ARRAY(tests, n, "/" #C, test_##S##_##C, SETUP, TEAR_DOWN, \
-- OPTIONS, PARAMS); \
-- _##S##_tests_n = n + 1; \
-+#define TEST__ADD_TO_SUITE(S, C, SETUP, TEAR_DOWN, OPTIONS, PARAMS) \
-+ __attribute__((constructor)) static void _##S##_tests_##C##_init(void) \
-+ { \
-+ MunitTest *tests = _##S##_tests; \
-+ int n = _##S##_tests_n; \
-+ TEST__SET_IN_ARRAY(tests, n, "/" #C, test_##S##_##C, SETUP, TEAR_DOWN, \
-+ OPTIONS, PARAMS); \
-+ _##S##_tests_n = n + 1; \
- }
-
- /* Set the values of the I'th test case slot in the given test array */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 21:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 21:48 [rpms/raft] epel10: Remove unused patched Reto Gantenbein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox