Skip to content

Refactor browser.test_runtime_misuse. NFC #24391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 21, 2025

This test is still quite hard to understand, but at least it doesn't have any loops.

@sbc100 sbc100 requested a review from kripken May 21, 2025 20:51
}

void free(void* ptr) { // free is valid to call even after the runtime closes, so useful as a hack here for this test
EM_ASM({ out(['reporting', $0]) }, noted);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This function was never used.. and the rest of this file is that same is as
test/test_runtime_misuse.c (except without main)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like call to free was removed in 3ddc9f2 but not the function itself.

@sbc100 sbc100 merged commit 8bf2dbe into emscripten-core:main May 21, 2025
28 of 30 checks passed
@sbc100 sbc100 deleted the runtime_misuse branch May 21, 2025 23:36
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