testsuite: allow for expected failure of tests
authorDave Reisner <dreisner@archlinux.org>
Mon, 30 Jan 2012 22:52:25 +0000 (17:52 -0500)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 31 Jan 2012 16:08:57 +0000 (14:08 -0200)
commitfa0046ba83bdb6d7e7a6c5285ab0082294a2ff5a
treeef5a3413f893d95c2ff7a8f8f392c440e9d693e5
parent69a1974347cffaf4c4c5f69e1ed177561ec94a6f
testsuite: allow for expected failure of tests

Adds a bool to the test struct called 'expected_fail' which can be set
to flip the logic used to determine success and failure. Messaging is
also changed to reflect an unexpected pass or expected fail. This can be
used to write tests which may represent functionality desirable for a
future release.
testsuite/testsuite.c
testsuite/testsuite.h