Exiting a tests on the first failure

Ferenc Wagner wferi at afavant.elte.hu
Mon Jan 17 05:12:49 CST 2005

Paul Vriens <Paul.Vriens at xs4all.nl> writes:

> If the first CreateKey fails, there is no need to continue with the
> testing (because the rest of the tests will fail as well). What's the
> best way to stop there?, something like this?:
> START_TEST(shreg)
> {
>         HKEY hkey = create_test_entries();
> +        if (!hkey) return;

Looks fine for me, given that in wine/test.h we have
#define START_TEST(name) void func_##name(void)

More information about the wine-devel mailing list