Skip to content

Simplify some pthreads tests. NFC#26905

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:test_pthread_locale
Open

Simplify some pthreads tests. NFC#26905
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:test_pthread_locale

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented May 9, 2026

  • Convert tests from C++ to C where possible
  • Remove the non-threaded code paths in tests that we always run threaded

@sbc100 sbc100 force-pushed the test_pthread_locale branch from 783c9ef to 0400ca2 Compare May 10, 2026 01:40
@sbc100 sbc100 requested review from dschuff, kleisauke and kripken May 11, 2026 21:58
Copy link
Copy Markdown
Collaborator Author

@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.

Sorry some of the renames came with some reformatting so github doesn't should the rename.

I could split out the C++ -> C conversions to make the diff more readable if you prefer?

@kripken
Copy link
Copy Markdown
Member

kripken commented May 12, 2026

Sorry some of the renames came with some reformatting so github doesn't should the rename.

I could split out the C++ -> C conversions to make the diff more readable if you prefer?

Hmm, yeah, that would be nice if it's not too much trouble.

sbc100 added a commit to sbc100/emscripten that referenced this pull request May 12, 2026
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 13, 2026
Copy link
Copy Markdown
Member

@dschuff dschuff left a comment

Choose a reason for hiding this comment

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

LGTM % ultra-nit.


void *watch_count(void *t)
{
void *watch_count(void *t) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this new style doesn't match inc_count above.

sbc100 added a commit that referenced this pull request May 13, 2026
@sbc100 sbc100 force-pushed the test_pthread_locale branch 3 times, most recently from b3e2f5e to 456b867 Compare May 13, 2026 16:43
- Convert tests from C++ to C where possible
- Remove the non-threaded code paths in tests that we always run threaded
@sbc100 sbc100 force-pushed the test_pthread_locale branch from 456b867 to f9ad581 Compare May 13, 2026 16:43
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.

3 participants