Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 27, 2026

There are several ways to add cflags when running tests. In cases where the number of flags is small and used only once it makes sense to just inline them into the call to do_runf (or one of the other test helpers).

@sbc100 sbc100 changed the title [test] Use inline cflags argument where is makes sense to. NFC [test] Use inline cflags argument where is makes sense. NFC Jan 27, 2026
@sbc100 sbc100 requested a review from kripken January 27, 2026 19:54
There are several ways to add cflags when running tests.  In cases
where the number of flags is small and used only once it makes sense
to just inline them into the call to `do_runf` (or one of the other
test helpers).
@sbc100 sbc100 enabled auto-merge (squash) January 27, 2026 22:20
@sbc100
Copy link
Collaborator Author

sbc100 commented Jan 28, 2026

Good to go now?

@kripken
Copy link
Member

kripken commented Jan 28, 2026

Sorry, this is a long one, and I was just around 50% done... now I see I am hitting the rebase problem. There is just one commit, and clicking "compare" on your force-push only shows the entire diff, not just your last changes, which includes all the code I've already reviewed... any suggestions for how to read this?

@sbc100
Copy link
Collaborator Author

sbc100 commented Jan 28, 2026

I re-uploaded this PR again, this time keeping the original change and adding to it. (Sadly I did have to force push again, but at least you can see that I just made a one line change based on top of the original one).

@kripken
Copy link
Member

kripken commented Jan 28, 2026

Thanks! Ok, I still have half the original commit to go, but I'm making progress now.

self.do_runf('core/test_asyncify_lists.cpp', ('RuntimeError', 'Thrown at'), assert_returncode=NON_ZERO)

# use of ASYNCIFY_* options may require intermediate debug info. that should
# not end up emitted in the final binary
Copy link
Member

Choose a reason for hiding this comment

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

Odd our linters didn't catch the pre-existing indentation issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I think our linter does not actually check for indentation right now!

@sbc100 sbc100 disabled auto-merge January 29, 2026 00:33
@sbc100 sbc100 merged commit d68f1e1 into emscripten-core:main Jan 29, 2026
34 of 36 checks passed
@sbc100 sbc100 deleted the test_cflags branch January 29, 2026 00:33
sbc100 added a commit to sbc100/emscripten that referenced this pull request Jan 29, 2026
…en-core#26178)

There are several ways to add cflags when running tests. In cases where
the number of flags is small and used only once it makes sense to just
inline them into the call to `do_runf` (or one of the other test
helpers).
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