-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
test: turn unittest 1308 into libtest #16891
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Hm, it was because of |
return TEST_ERR_FAILURE; \ | ||
} \ | ||
} while(0) | ||
#include "curlcheck.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be "cleaner" to move curlcheck.h
to tests/libtest
?
The variable unitfail
that it's using, is declared there already.
It may avoid the two way dependency between units and libtests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be "cleaner" to move curlcheck.h to tests/libtest?
It is used by just about every unit test and this the first change making use of it in libtests. It seemed to belong there more than in libtests...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, but it doesn't work without the global var in libtests/first.c
and libtests/test.h
.
It's somewhat confusing. Maybe that would be better be moved inside units and use a local macro here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. unitfail
also sort of implies a unit test by name. Maybe we should just move them up a level and use them freely in both unit tests and libtests. I think we can do that outside of this PR to keep this focused.
Test 1308 was wrongly marked a unit test when in reality it is a libtest. Converted to test 3033.
af388f9
to
33d0f16
Compare
Test 1308 was wrongly marked a unit test when in reality it is a libtest.