Exiting a tests on the first failure
Alexandre Julliard
julliard at winehq.org
Mon Jan 17 06:24:04 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;
No, the best way is to fix the test to use a key that works on all
platforms. The test case is useless otherwise.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list