mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
5409997d49
rename *.t* to *-t* to be automake-friendly simplify Makefiles test_atomic.c: move to unittest, add GPL comment, fix warnings, convert to tap framework. configure: remove custom tests for available types, use AC_CHECK_TYPE instead x86-gcc.h: fix gcc -ansi errors while maintaining readability ignore: added *-t
25 lines
465 B
C
25 lines
465 B
C
|
|
#include "my_config.h"
|
|
|
|
#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())
|
|
skip_all("Example of skipping an entire test");
|
|
plan(4);
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
ok(1, NULL);
|
|
return exit_status();
|
|
}
|