Skip to content

gdb/testsuite/rocm/runtime-core: ensure all or no test run#177

Open
lancesix wants to merge 1 commit into
amd-stagingfrom
users/lancesix/ensure-all-runtime-core-test-run-or-none
Open

gdb/testsuite/rocm/runtime-core: ensure all or no test run#177
lancesix wants to merge 1 commit into
amd-stagingfrom
users/lancesix/ensure-all-runtime-core-test-run-or-none

Conversation

@lancesix

Copy link
Copy Markdown
Collaborator

When working on coredump related issue, it was noticed that some runtime changes could work in some conditions but fail in others. The gdb.rocm/runtime-core.exp testcase was not really complaining about that, it would validate the core dumps when produced and skip the test if the core was absent.

It is expected that if the system configuration is not adequate, none of the runtime-core cases would run, but if at least one can run, it means all must also run.

This test ensures that we run either all or none of the testcase, and issue a FAIL if this property is not satisfied.

Change-Id: Ic79b958a0991b21dc1dfeb6bb13b3f292c53261f

@lancesix lancesix requested a review from a team as a code owner June 18, 2026 10:44
Comment thread gdb/testsuite/gdb.rocm/runtime-core.exp Outdated
@lancesix lancesix force-pushed the users/lancesix/ensure-all-runtime-core-test-run-or-none branch from e02b7f1 to 04093d6 Compare June 18, 2026 11:18
@lumachad

Copy link
Copy Markdown
Collaborator

With the fix I now see the following:

Running /develop/work/repos/TheRock/build/dist/rocm/tests/rocgdb/gdb/testsuite/gdb.rocm/runtime-core.exp ...
FAIL: gdb.rocm/runtime-core.exp: coredump consistently produced

                === gdb Summary ===

# of expected passes            53
# of unexpected failures        1
# of untested testcases         2

Probably need an extra fix to rocr-runtime?

@lumachad lumachad assigned lancesix and unassigned lumachad Jun 18, 2026

@lumachad lumachad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change itself is OK for me.

@lancesix

Copy link
Copy Markdown
Collaborator Author

With the fix I now see the following:

Running /develop/work/repos/TheRock/build/dist/rocm/tests/rocgdb/gdb/testsuite/gdb.rocm/runtime-core.exp ...
FAIL: gdb.rocm/runtime-core.exp: coredump consistently produced

                === gdb Summary ===

# of expected passes            53
# of unexpected failures        1
# of untested testcases         2

Probably need an extra fix to rocr-runtime?

would you have the gdb.log with those 2 untested entries I could look at?

Comment thread gdb/testsuite/gdb.rocm/runtime-core.exp Outdated
Comment thread gdb/testsuite/gdb.rocm/runtime-core.exp
When working on coredump related issue, it was noticed that some runtime
changes could work in some conditions but fail in others.  The
gdb.rocm/runtime-core.exp testcase was not really complaining about
that, it would validate the core dumps when produced and skip the test
if the core was absent.

It is expected that if the system configuration is not adequate, none of
the runtime-core cases would run, but if at least one can run, it means
all must also run.

This test ensures that we run either all or none of the testcase, and
issue a FAIL if this property is not satisfied.

Change-Id: Ic79b958a0991b21dc1dfeb6bb13b3f292c53261f
@lancesix lancesix force-pushed the users/lancesix/ensure-all-runtime-core-test-run-or-none branch from 04093d6 to be26f87 Compare June 18, 2026 22:15
@lancesix

Copy link
Copy Markdown
Collaborator Author

Applied suggestions to comments.

@lancesix lancesix assigned palves and unassigned lancesix Jun 18, 2026
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.

3 participants