silentbicycle / greatest

A C testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed.
ISC License
1.48k stars 108 forks source link

Guard against nested `RUN_TEST` calls #97

Closed silentbicycle closed 3 years ago

silentbicycle commented 5 years ago

While responding to #96, I realized that greatest should more explicitly guard against calling RUN_TEST inside a test (which was, itself, run via RUN_TEST) -- it doesn't make any effort to handle that kind of nesting, so it will lead to strange behavior.