Blame support/README-testing.c
|
Packit |
6c4009 |
/* This file contains an example test case which shows minimal use of
|
|
Packit |
6c4009 |
the test framework. Additional testing hooks are described in
|
|
Packit |
6c4009 |
<support/test-driver.c>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* This function will be called from the test driver. */
|
|
Packit |
6c4009 |
static int
|
|
Packit |
6c4009 |
do_test (void)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
if (3 == 5)
|
|
Packit |
6c4009 |
/* Indicate failure. */
|
|
Packit |
6c4009 |
return 1;
|
|
Packit |
6c4009 |
else
|
|
Packit |
6c4009 |
/* Indicate success. */
|
|
Packit |
6c4009 |
return 0;
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* This file references do_test above and contains the definition of
|
|
Packit |
6c4009 |
the main function. */
|
|
Packit |
6c4009 |
#include <support/test-driver.c>
|