From ab9dcf69156027a1338eabcc7222e376b3518dc0 Mon Sep 17 00:00:00 2001 From: qeqx <284521809+anon5376@users.noreply.github.com> Date: Sun, 11 Oct 2026 12:46:27 +0900 Subject: [PATCH] Quote output-test fixture paths Source test_output_strings as one path when the checkout directory contains spaces. Run the existing Linux CMake job from a spaced checkout to retain regression coverage. All four output tests fail on the unchanged checkout and pass with the quoted paths on macOS. The other five baseline CTest cases pass. Assisted-by: OpenAI Codex --- .github/workflows/linux.yml | 5 +++++ tests/test_log_output.sh | 2 +- tests/test_output.sh | 2 +- tests/test_tap_output.sh | 2 +- tests/test_xml_output.sh | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index f71a4720..8146bf07 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -136,8 +136,13 @@ jobs: build_linux_cmake: runs-on: ubuntu-latest + defaults: + run: + working-directory: check with spaces steps: - uses: actions/checkout@v7 + with: + path: check with spaces - name: cmake cversion run: cmake --version - name: create configs diff --git a/tests/test_log_output.sh b/tests/test_log_output.sh index 962bf32e..74215eeb 100755 --- a/tests/test_log_output.sh +++ b/tests/test_log_output.sh @@ -3,7 +3,7 @@ OUTPUT_FILE=test.log . ./test_vars -. $(dirname $0)/test_output_strings +. "$(dirname "$0")/test_output_strings" test_log_output ( ) { rm -f ${OUTPUT_FILE} diff --git a/tests/test_output.sh b/tests/test_output.sh index c1b31bd0..c1311030 100755 --- a/tests/test_output.sh +++ b/tests/test_output.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh . ./test_vars -. $(dirname $0)/test_output_strings +. "$(dirname "$0")/test_output_strings" # When the ex_output program is run with the STDOUT_DUMP mode, it will # run with the normal output mode, then dump each output mode using diff --git a/tests/test_tap_output.sh b/tests/test_tap_output.sh index b74b8064..d666b699 100755 --- a/tests/test_tap_output.sh +++ b/tests/test_tap_output.sh @@ -3,7 +3,7 @@ OUTPUT_FILE=test.tap . ./test_vars -. $(dirname $0)/test_output_strings +. "$(dirname "$0")/test_output_strings" test_tap_output ( ) { rm -f ${OUTPUT_FILE} diff --git a/tests/test_xml_output.sh b/tests/test_xml_output.sh index eef550ca..c5899ae0 100755 --- a/tests/test_xml_output.sh +++ b/tests/test_xml_output.sh @@ -4,7 +4,7 @@ OUTPUT_FILE=test.xml CK_DEFAULT_TIMEOUT=4 . ./test_vars -. $(dirname $0)/test_output_strings +. "$(dirname "$0")/test_output_strings" rm -f ${OUTPUT_FILE} export CK_DEFAULT_TIMEOUT