X Tutup
The Wayback Machine - https://web.archive.org/web/20201207131755/https://github.com/libuv/libuv/issues/2974
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

test: switch to ASSERT_EQ etc. macros #2974

Open
bnoordhuis opened this issue Aug 28, 2020 · 6 comments
Open

test: switch to ASSERT_EQ etc. macros #2974

bnoordhuis opened this issue Aug 28, 2020 · 6 comments

Comments

@bnoordhuis
Copy link
Member

@bnoordhuis bnoordhuis commented Aug 28, 2020

Wanted to discuss this before opening a PR: is everyone okay with a bulk conversion from the old-style ASSERT macro to the new-style ASSERT_EQ, ASSERT_NE, etc. macros?

It'll cause a bit of churn in test/ but it should make debugging tests a lot easier.

@bnoordhuis bnoordhuis added the test label Aug 28, 2020
@santigimeno
Copy link
Member

@santigimeno santigimeno commented Aug 28, 2020

I'm all for it. 👍

@cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Aug 28, 2020

Also +1

@richardlau
Copy link
Contributor

@richardlau richardlau commented Aug 28, 2020

+1 for making it easier to debug test failures.

@stale stale bot added the stale label Sep 18, 2020
@libuv libuv deleted a comment from stale bot Sep 20, 2020
@stale stale bot removed the stale label Sep 20, 2020
@bnoordhuis
Copy link
Member Author

@bnoordhuis bnoordhuis commented Sep 20, 2020

I haven't had time to work on this. For anyone wanting to pick this up, it should be a fairly mechanical translation - just try to ensure lines stay <= 80 columns. :-)

@tjarlama
Copy link
Contributor

@tjarlama tjarlama commented Oct 7, 2020

Picking this up

@leonerd
Copy link

@leonerd leonerd commented Nov 15, 2020

Unknowingly, I have mostly done this in #3042; though it seems I still have to do some different macros for unsigned int or pointer tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.
X Tutup