Remove testonly keyword

This commit is contained in:
Justine Tunney 2022-09-05 08:41:43 -07:00
parent 9be364d40a
commit d721ff8938
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
31 changed files with 78 additions and 94 deletions

View file

@ -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) {