Skip to content

Small improvements of tests#496

Merged
adam-sawicki-a merged 2 commits intoGPUOpen-LibrariesAndSDKs:masterfrom
IAmNotHanni:small_tests_fix
May 22, 2025
Merged

Small improvements of tests#496
adam-sawicki-a merged 2 commits intoGPUOpen-LibrariesAndSDKs:masterfrom
IAmNotHanni:small_tests_fix

Conversation

@IAmNotHanni
Copy link
Copy Markdown
Contributor

@IAmNotHanni IAmNotHanni commented May 21, 2025

vmaFlushAllocation is unnecessary here because vmaCopyMemoryToAllocation does that internally if it's required.
This small mistake made it somehow through when discussing pull request #474.
I only found this in this test, the others seem to be correct.

@IAmNotHanni IAmNotHanni changed the title Remove unnecessary cache flush Remove unnecessary vmaFlushAllocation in test May 21, 2025
@IAmNotHanni
Copy link
Copy Markdown
Contributor Author

IAmNotHanni commented May 21, 2025

Oh I just also realized the tests I wrote are not checking the return value of vmaCopyMemoryToAllocation, but they really should.
I will add this here as well.

@IAmNotHanni IAmNotHanni changed the title Remove unnecessary vmaFlushAllocation in test Small improvements of tests May 21, 2025
@adam-sawicki-a adam-sawicki-a merged commit 06a453e into GPUOpen-LibrariesAndSDKs:master May 22, 2025
@adam-sawicki-a
Copy link
Copy Markdown
Contributor

Thank you for this contribution.

@adam-sawicki-a adam-sawicki-a added next release To be done as soon as possible quality Code quality improvement e.g. refactoring labels May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next release To be done as soon as possible quality Code quality improvement e.g. refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants