summaryrefslogtreecommitdiff
path: root/mysql-test/suite/perfschema/include/have_aligned_memory.inc
blob: d420f0e055ad302cd75a0d3ef92fedc8ee55eb37 (plain)
1
2
3
4
5
6
7
8
9
10
# The performance schema internal structures are compiled with PFS_ALIGN,
# and the sizeof() structures is platform dependent.
#
# For tests sensitive to the internal sizes (show engine performance_schema
# status), make sure we use a platform with aligned memory.

if (`SELECT count(*)=0 from performance_schema.session_connect_attrs where PROCESSLIST_ID = connection_id() and ATTR_NAME = '_os' and ATTR_VALUE in ('Linux', 'Windows')`)
{
  skip Need a platform with aligned memory;
}