Skip to content
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

Cleanup wasm worker tests. NFC #22749

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 16, 2024

  • Use emscripten_out helper instead of EM_ASM(out(...)).
  • Remove tabs
  • Curly braces on the same line as keyword
  • Parameterize one test

@sbc100 sbc100 enabled auto-merge (squash) October 16, 2024 18:15
- Use `emscripten_out` helper instead of EM_ASM(out(...)).
- Remove tabs
- Curly braces on the same line as keyword
- Parameterize one test
@sbc100 sbc100 merged commit f13cfcf into emscripten-core:main Oct 16, 2024
28 checks passed
@sbc100 sbc100 deleted the wasm_worker_test branch October 16, 2024 20:32
#include <emscripten/wasm_worker.h>
#include <emscripten/stack.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>

#define THREAD_STACK_SIZE 1024
#define THREAD_STACK_SIZE 2048
Copy link
Member

Choose a reason for hiding this comment

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

Stack size change because of emscripten_outf?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup, essentially printf. The exact side of the stack in this test is not super important though I think. I just designed to ensure that stack start/end match our expectations.

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