mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
MDEV-4546 Perfschema unit tests to return non-zero on failure.
pfs unit test fixed.
This commit is contained in:
parent
7093049c32
commit
c697aa1f7c
10 changed files with 12 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue