Skip to content

Use ASSERT_STREQ for testing ExtractSourceFromModule results#6600

Open
OPNA2608 wants to merge 1 commit into
KhronosGroup:mainfrom
OPNA2608:fix/test-objdump-streq
Open

Use ASSERT_STREQ for testing ExtractSourceFromModule results#6600
OPNA2608 wants to merge 1 commit into
KhronosGroup:mainfrom
OPNA2608:fix/test-objdump-streq

Conversation

@OPNA2608

@OPNA2608 OPNA2608 commented Mar 16, 2026

Copy link
Copy Markdown

In case of a mismatch, ASSERT_STREQ actually prints both strings. Example:

/build/source/test/tools/objdump/extract_source_test.cpp:223: Failure Expected equality of these values:
  resStr.c_str()
    Which is: "diovmoc etup}{)("
  "void compute(){}"

This makes it easier to see that SPIRV-Tools has a similar issue as KhronosGroup/glslang#4145, where parsing on big-endian gives either seemingly no/incomplete results, or results where strings are partially reversed.

@CLAassistant

CLAassistant commented Mar 16, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@alan-baker
alan-baker enabled auto-merge (squash) May 28, 2026 20:13
@alan-baker

Copy link
Copy Markdown
Contributor

Likely needs a rebase.

In case of a mismatch, ASSERT_STREQ actually prints both strings. Example:

/build/source/test/tools/objdump/extract_source_test.cpp:223: Failure
Expected equality of these values:
  resStr.c_str()
    Which is: "diovmoc etup}{)("
  "void compute(){}"
auto-merge was automatically disabled May 31, 2026 12:57

Head branch was pushed to by a user without write access

@OPNA2608
OPNA2608 force-pushed the fix/test-objdump-streq branch from b354e4b to 8a73b30 Compare May 31, 2026 12:57
@OPNA2608

Copy link
Copy Markdown
Author

Rebased on main.

@alan-baker
alan-baker enabled auto-merge (squash) June 4, 2026 23:13
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.

4 participants