From c80ca19a354f10bb92889ad6cea80864c3b60524 Mon Sep 17 00:00:00 2001 From: Max Rijkers Date: Thu, 20 Aug 2026 23:19:38 +0200 Subject: [PATCH 1/2] Only execute test_json_parse_cli when BUILD_APPS is ON --- tests/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5d62171..51454af 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -38,9 +38,10 @@ set(ALL_TEST_NAMES test_visit test_object_iterator) -set(NOBUILD_TEST_NAMES - test_json_parse_cli -) +set(NOBUILD_TEST_NAMES "") +if (BUILD_APPS) + set(NOBUILD_TEST_NAMES ${NOBUILD_TEST_NAMES} test_json_parse_cli) +endif() if (NOT DISABLE_JSON_POINTER) set(ALL_TEST_NAMES ${ALL_TEST_NAMES} test_json_pointer) From 105a1067e3467ec42bd52370613b27d7a8a6e85c Mon Sep 17 00:00:00 2001 From: Max Rijkers Date: Thu, 20 Aug 2026 23:21:16 +0200 Subject: [PATCH 2/2] Use printf instead of echo --- tests/test_json_parse_cli.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_json_parse_cli.test b/tests/test_json_parse_cli.test index 0982afe..c4359ca 100755 --- a/tests/test_json_parse_cli.test +++ b/tests/test_json_parse_cli.test @@ -10,7 +10,7 @@ fi set -x -v -echo -n '"tenant=blue;note=CANARY_STACK_WINDOW_2026;status=ok"' > file1.dat +printf '%s' '"tenant=blue;note=CANARY_STACK_WINDOW_2026;status=ok"' > file1.dat (printf '"' ; printf 'A%.0s' $(seq 1 16) ; echo 'e2' | xxd -r -p) > file2.dat TESTNAME="${0##*/}"