mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Remove testonly
keyword
This commit is contained in:
parent
9be364d40a
commit
d721ff8938
31 changed files with 78 additions and 94 deletions
|
@ -21,8 +21,8 @@
|
|||
#include "libc/sysv/consts/prot.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
testonly int testlib_countfixtures(const struct TestFixture *start,
|
||||
const struct TestFixture *end) {
|
||||
int testlib_countfixtures(const struct TestFixture *start,
|
||||
const struct TestFixture *end) {
|
||||
return ((intptr_t)end - (intptr_t)start) / sizeof(struct TestFixture);
|
||||
}
|
||||
|
||||
|
@ -31,9 +31,9 @@ testonly int testlib_countfixtures(const struct TestFixture *start,
|
|||
* @see ape/ape.lds
|
||||
* @see libc/testlib/testlib.h
|
||||
*/
|
||||
testonly void testlib_runfixtures(testfn_t *test_start, testfn_t *test_end,
|
||||
const struct TestFixture *fixture_start,
|
||||
const struct TestFixture *fixture_end) {
|
||||
void testlib_runfixtures(testfn_t *test_start, testfn_t *test_end,
|
||||
const struct TestFixture *fixture_start,
|
||||
const struct TestFixture *fixture_end) {
|
||||
unsigned i, count;
|
||||
count = testlib_countfixtures(fixture_start, fixture_end);
|
||||
for (i = 0; i < count && !g_testlib_failed; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue