MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
have_aligned_memory.inc
1 # The performance schema internal structures are compiled with PFS_ALIGN,
2 # and the sizeof() structures is platform dependent.
3 #
4 # For tests sensitive to the internal sizes (show engine performance_schema
5 # status), make sure we use a platform with aligned memory.
6 
7 --disable_query_log
8 let $aligned = `SELECT count(*) from performance_schema.session_connect_attrs where PROCESSLIST_ID = connection_id() and ATTR_NAME = '_os' and ATTR_VALUE in ('Linux', 'Windows')`;
9 if (!$aligned)
10 {
11  skip Need a platform with aligned memory;
12 }
13 --enable_query_log