mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Bug#11830755 - UNIT TESTS PFS_INSTR AND PFS_INSTR_CLASS CRASH IN MUTEX CALLS ON WINDOWS
Before this fix, two performance schema unit tests crashed on windows. The problem was a missing initialization to PFS_atomics, which caused the crash only for platform not compiled with native atomics. This fix adds the missing initialization in the unit tests. No production code was changed, this is a unit test bug only.
This commit is contained in:
parent
0db0e64f33
commit
d1cbc64c38
6 changed files with 22 additions and 0 deletions
|
@ -1205,6 +1205,8 @@ void test_enabled()
|
|||
|
||||
void do_all_tests()
|
||||
{
|
||||
/* Using initialize_performance_schema(), no partial init needed. */
|
||||
|
||||
test_bootstrap();
|
||||
test_bad_registration();
|
||||
test_init_disabled();
|
||||
|
|
|
@ -199,7 +199,11 @@ void test_oom()
|
|||
|
||||
void do_all_tests()
|
||||
{
|
||||
PFS_atomic::init();
|
||||
|
||||
test_oom();
|
||||
|
||||
PFS_atomic::cleanup();
|
||||
}
|
||||
|
||||
int main(int, char **)
|
||||
|
|
|
@ -400,10 +400,14 @@ void test_per_thread_wait()
|
|||
|
||||
void do_all_tests()
|
||||
{
|
||||
PFS_atomic::init();
|
||||
|
||||
test_no_instruments();
|
||||
test_no_instances();
|
||||
test_with_instances();
|
||||
test_per_thread_wait();
|
||||
|
||||
PFS_atomic::cleanup();
|
||||
}
|
||||
|
||||
int main(int, char **)
|
||||
|
|
|
@ -47,7 +47,11 @@ void test_oom()
|
|||
|
||||
void do_all_tests()
|
||||
{
|
||||
PFS_atomic::init();
|
||||
|
||||
test_oom();
|
||||
|
||||
PFS_atomic::cleanup();
|
||||
}
|
||||
|
||||
int main(int, char **)
|
||||
|
|
|
@ -554,6 +554,8 @@ void test_instruments_reset()
|
|||
|
||||
void do_all_tests()
|
||||
{
|
||||
PFS_atomic::init();
|
||||
|
||||
test_no_registration();
|
||||
test_mutex_registration();
|
||||
test_rwlock_registration();
|
||||
|
@ -562,6 +564,8 @@ void do_all_tests()
|
|||
test_file_registration();
|
||||
test_table_registration();
|
||||
test_instruments_reset();
|
||||
|
||||
PFS_atomic::cleanup();
|
||||
}
|
||||
|
||||
int main(int, char **)
|
||||
|
|
|
@ -105,7 +105,11 @@ void test_timers()
|
|||
|
||||
void do_all_tests()
|
||||
{
|
||||
PFS_atomic::init();
|
||||
|
||||
test_timers();
|
||||
|
||||
PFS_atomic::cleanup();
|
||||
}
|
||||
|
||||
int main(int, char **)
|
||||
|
|
Loading…
Add table
Reference in a new issue