Skip to content

Commit da4ed6d

Browse files
committed
Merge branch 'mysql-5.6' into mysql-5.7
2 parents 23dc12f + d034396 commit da4ed6d

12 files changed

+26
-25
lines changed

storage/perfschema/unittest/pfs-t.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -1386,7 +1386,8 @@ void test_locker_disabled()
13861386
ok(socket_A1 != NULL, "instrumented");
13871387
/* Socket thread owner has not been set */
13881388
socket_locker= psi->start_socket_wait(&socket_state, socket_A1, PSI_SOCKET_SEND, 12, "foo.cc", 12);
1389-
ok(socket_locker == NULL, "no locker (no thread owner)");
1389+
ok(socket_locker != NULL, "locker (owner not used)");
1390+
psi->end_socket_wait(socket_locker, 10);
13901391

13911392
/* Pretend the running thread is not instrumented */
13921393
/* ---------------------------------------------- */
@@ -1872,6 +1873,6 @@ int main(int, char **)
18721873

18731874
MY_INIT("pfs-t");
18741875
do_all_tests();
1875-
return 0;
1876+
return (exit_status());
18761877
}
18771878

storage/perfschema/unittest/pfs_account-oom-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -162,5 +162,5 @@ int main(int, char **)
162162
plan(12);
163163
MY_INIT("pfs_account-oom-t");
164164
do_all_tests();
165-
return 0;
165+
return (exit_status());
166166
}

storage/perfschema/unittest/pfs_connect_attr-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -341,5 +341,5 @@ int main(int, char **)
341341
diag("skipping the cp1251 tests : missing character set");
342342
plan(59 + (cs_cp1251 ? 10 : 0));
343343
do_all_tests();
344-
return 0;
344+
return (exit_status());
345345
}

storage/perfschema/unittest/pfs_host-oom-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -135,6 +135,6 @@ int main(int, char **)
135135
plan(6);
136136
MY_INIT("pfs_host-oom-t");
137137
do_all_tests();
138-
return 0;
138+
return (exit_status());
139139
}
140140

storage/perfschema/unittest/pfs_instr-oom-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -446,6 +446,6 @@ int main(int, char **)
446446
plan(32);
447447
MY_INIT("pfs_instr-oom-t");
448448
do_all_tests();
449-
return 0;
449+
return (exit_status());
450450
}
451451

storage/perfschema/unittest/pfs_instr-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -476,6 +476,6 @@ int main(int, char **)
476476
plan(103);
477477
MY_INIT("pfs_instr-t");
478478
do_all_tests();
479-
return 0;
479+
return (exit_status());
480480
}
481481

storage/perfschema/unittest/pfs_instr_class-oom-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -101,6 +101,6 @@ int main(int, char **)
101101
plan(11);
102102
MY_INIT("pfs_instr_info-oom-t");
103103
do_all_tests();
104-
return 0;
104+
return (exit_status());
105105
}
106106

storage/perfschema/unittest/pfs_instr_class-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -738,6 +738,6 @@ int main(int, char **)
738738
plan(209);
739739
MY_INIT("pfs_instr_info-t");
740740
do_all_tests();
741-
return 0;
741+
return (exit_status());
742742
}
743743

storage/perfschema/unittest/pfs_misc-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -83,5 +83,5 @@ int main(int, char **)
8383
plan(3);
8484
MY_INIT("pfs_misc-t");
8585
do_all_tests();
86-
return exit_status();
86+
return (exit_status());
8787
}

storage/perfschema/unittest/pfs_noop-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -229,6 +229,6 @@ int main(int, char **)
229229

230230
MY_INIT("pfs_noop-t");
231231
test_noop();
232-
return 0;
232+
return (exit_status());
233233
}
234234

storage/perfschema/unittest/pfs_timer-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -117,6 +117,6 @@ int main(int, char **)
117117
plan(5);
118118
MY_INIT("pfs_timer-t");
119119
do_all_tests();
120-
return 0;
120+
return (exit_status());
121121
}
122122

storage/perfschema/unittest/pfs_user-oom-t.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -133,6 +133,6 @@ int main(int, char **)
133133
plan(6);
134134
MY_INIT("pfs_user-oom-t");
135135
do_all_tests();
136-
return 0;
136+
return (exit_status());
137137
}
138138

0 commit comments

Comments
 (0)