MDEV-4546 Perfschema unit tests to return non-zero on failure.

pfs unit test fixed.
This commit is contained in:
unknown 2013-07-16 12:26:04 +03:00
parent 7093049c32
commit c697aa1f7c
10 changed files with 12 additions and 10 deletions

View file

@ -24,5 +24,5 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
ADD_DEFINITIONS(-DMYSQL_SERVER)
MY_ADD_TESTS(pfs_instr_class pfs_instr_class-oom pfs_instr pfs_instr-oom pfs_account-oom pfs_host-oom pfs_user-oom pfs
MY_ADD_TESTS(pfs_instr_class pfs_instr_class-oom pfs_instr pfs_instr-oom pfs_account-oom pfs_host-oom pfs_timer pfs_user-oom pfs
EXT "cc" LINK_LIBRARIES perfschema mysys)

View file

@ -1636,5 +1636,5 @@ int main(int argc, char **argv)
MY_INIT(argv[0]);
do_all_tests();
my_end(0);
return 0;
return exit_status();
}

View file

@ -112,6 +112,6 @@ int main(int, char **)
MY_INIT("pfs_account-oom-t");
do_all_tests();
my_end(0);
return 0;
return exit_status();
}

View file

@ -112,6 +112,6 @@ int main(int, char **)
MY_INIT("pfs_host-oom-t");
do_all_tests();
my_end(0);
return 0;
return exit_status();
}

View file

@ -650,6 +650,6 @@ int main(int argc, char **argv)
MY_INIT(argv[0]);
do_all_tests();
my_end(0);
return 0;
return exit_status();
}

View file

@ -411,6 +411,6 @@ int main(int argc, char **argv)
MY_INIT(argv[0]);
do_all_tests();
my_end(0);
return 0;
return exit_status();
}

View file

@ -69,6 +69,6 @@ int main(int argc, char **argv)
MY_INIT(argv[0]);
do_all_tests();
my_end(0);
return 0;
return exit_status();
}

View file

@ -674,5 +674,5 @@ int main(int argc, char **argv)
MY_INIT(argv[0]);
do_all_tests();
my_end(0);
return 0;
return exit_status();
}

View file

@ -15,6 +15,7 @@
#include <my_global.h>
#include <my_pthread.h>
#include <pfs_atomic.h>
#include <pfs_timer.h>
#include "my_sys.h"
#include <tap.h>
@ -117,6 +118,7 @@ int main(int, char **)
plan(5);
MY_INIT("pfs_timer-t");
do_all_tests();
return 0;
my_end(0);
return exit_status();
}

View file

@ -112,6 +112,6 @@ int main(int, char **)
MY_INIT("pfs_user-oom-t");
do_all_tests();
my_end(0);
return 0;
return exit_status();
}