Commit c697aa1f authored by unknown's avatar unknown

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

pfs unit test fixed.
parent 7093049c
......@@ -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)
......@@ -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();
}
......@@ -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();
}
......@@ -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();
}
......@@ -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();
}
......@@ -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();
}
......@@ -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();
}
......@@ -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();
}
......@@ -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();
}
......@@ -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();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment