Skip to content

Conversation

@kleisauke
Copy link
Collaborator

This PR cleanups the tests/core/pthread/{create,exceptions}.cpp tests by:

  • using the operator arithmetic from std::atomic<T>, were possible;
  • calling exit(0); after canceling the main loop;
  • ensuring it's build with -sEXIT_RUNTIME for a true shutdown;
  • removing a redundant variable.

Commit kleisauke@4defe14 is unrelated to the above changes, but I thought I could include within this PR as well (since it's a small typo fix).

(this was split from #12963, as requested in #12963 (comment))

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

Nice!

@sbc100
Copy link
Collaborator

sbc100 commented Jan 8, 2021

CI is currently broken due to WebAssembly/waterfall#678

@kleisauke kleisauke force-pushed the cleanup-pthread-tests branch from 4defe14 to fe44328 Compare January 9, 2021 11:06
@kleisauke
Copy link
Collaborator Author

OK, I've rebased this on top of the master branch. Let's see how this behaves in CI now.

@sbc100 sbc100 merged commit d1d1147 into emscripten-core:master Jan 11, 2021
@kleisauke kleisauke deleted the cleanup-pthread-tests branch January 12, 2021 09:14
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