Skip to content

standalone_systests: drop hardcoded CWD path check in semihost#34

Merged
quic-mliebel merged 1 commit into
qualcomm:mainfrom
quic-mliebel:fix-semihost-cwd-check
Jun 10, 2026
Merged

standalone_systests: drop hardcoded CWD path check in semihost#34
quic-mliebel merged 1 commit into
qualcomm:mainfrom
quic-mliebel:fix-semihost-cwd-check

Conversation

@quic-mliebel

Copy link
Copy Markdown
Contributor

The semihost test asserted that GETCWD returns a path ending in "tests/tcg/hexagon-softmmu" -- a holdover from when the test was run from the QEMU source tree by the TCG harness. After moving the test to QEMU's functional-test framework, the binary runs from a per-test workdir and the suffix check fails for no good reason.

The check was a sanity check on where the test ran, not a validation of GETCWD itself; remove it. The remaining assert on ret still verifies that GETCWD succeeded.

Remove the now-unused path_ends_with helper and its is_path_sep macro along with it.

The semihost test asserted that GETCWD returns a path ending in
"tests/tcg/hexagon-softmmu" -- a holdover from when the test
was run from the QEMU source tree by the TCG harness.  After
moving the test to QEMU's functional-test framework, the binary
runs from a per-test workdir and the suffix check fails for
no good reason.

The check was a sanity check on where the test ran, not a
validation of GETCWD itself; remove it.  The remaining assert
on `ret` still verifies that GETCWD succeeded.

Remove the now-unused `path_ends_with` helper and its `is_path_sep`
macro along with it.

Signed-off-by: Marco Liebel <marco.liebel@oss.qualcomm.com>
@quic-mliebel quic-mliebel requested a review from androm3da June 10, 2026 14:00
@quic-mliebel quic-mliebel merged commit 6e9fb41 into qualcomm:main Jun 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants