Skip to content

Commit 5741aab

Browse files
authored
Avoid resolving wild pointers in automatic search for tests
1 parent 7a95460 commit 5741aab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

utest/ctest.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,14 @@ static void __ctest_linkTests(void)
373373
struct ctest ** ctest_end = (struct ctest **)__PNAME(suite, test);
374374

375375
// find begin and end of section by comparing magics
376-
while (1) {
376+
#if 0
377+
while (1) {
377378
struct ctest** t = __CTEST_POINTER_PREV(ctest_begin);
378379
if (t[0] == NULL) break;
379380
if (t[1] != (struct ctest*)__CTEST_MAGIC) break;
380381
ctest_begin = t;
381382
}
383+
#endif
382384
while (1) {
383385
struct ctest** t = __CTEST_POINTER_NEXT(ctest_end);
384386
if (t[0] == NULL) break;

0 commit comments

Comments
 (0)