From 15c042217757b9b32ed03c49832bb86624d04a64 Mon Sep 17 00:00:00 2001 From: Hitesh Ahuja Date: Tue, 9 Apr 2024 15:08:25 -0700 Subject: [PATCH] chore(agent): define version at the top --- agent/tests/test_fw_support.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/agent/tests/test_fw_support.c b/agent/tests/test_fw_support.c index 8e95c761c..fdd5d0364 100644 --- a/agent/tests/test_fw_support.c +++ b/agent/tests/test_fw_support.c @@ -16,6 +16,9 @@ static void test_fw_supportability_metrics(void) { #define LIBRARY_MAJOR_VERSION "7" #define LIBRARY_MAJOR_VERSION_2 "10" #define LIBRARY_MAJOR_VERSION_3 "100" +#define LIBRARY_MAJOR_VERSION_4 "1.23" +#define LIBRARY_MAJOR_VERSION_5 "12.34" +#define LIBRARY_MAJOR_VERSION_6 "123.45" #define LIBRARY_METRIC "Supportability/library/" LIBRARY_NAME "/detected" #define LOGGING_LIBRARY_METRIC "Supportability/Logging/PHP/" LIBRARY_NAME #define PACKAGE_METRIC "Supportability/PHP/package/" LIBRARY_NAME @@ -85,10 +88,6 @@ static void test_fw_supportability_metrics(void) { nrm_find(txn->unscoped_metrics, PACKAGE_METRIC "/" LIBRARY_MAJOR_VERSION_3 "/detected")); - #define LIBRARY_MAJOR_VERSION_4 "1.23" - #define LIBRARY_MAJOR_VERSION_5 "12.34" - #define LIBRARY_MAJOR_VERSION_6 "123.45" - nr_fw_support_add_package_supportability_metric(txn, LIBRARY_NAME, LIBRARY_MAJOR_VERSION_4); tlib_pass_if_not_null(