2006-04-04 18:16:15 +02:00
|
|
|
|
2006-05-10 17:29:28 +02:00
|
|
|
#include "my_config.h"
|
|
|
|
|
2006-04-04 18:16:15 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <tap.h>
|
|
|
|
|
|
|
|
int has_feature() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
In some cases, an entire test file does not make sense because there
|
|
|
|
some feature is missing. In that case, the entire test case can be
|
|
|
|
skipped in the following manner.
|
|
|
|
*/
|
|
|
|
int main() {
|
|
|
|
if (!has_feature())
|
2006-04-10 17:06:12 +02:00
|
|
|
skip_all("Example of skipping an entire test");
|
2006-04-04 18:16:15 +02:00
|
|
|
plan(4);
|
|
|
|
ok(1, NULL);
|
|
|
|
ok(1, NULL);
|
|
|
|
ok(1, NULL);
|
|
|
|
ok(1, NULL);
|
|
|
|
return exit_status();
|
|
|
|
}
|