16 #include <my_global.h>
17 #include <my_pthread.h>
24 #include "stub_pfs_global.h"
25 #include "stub_server_misc.h"
34 memset(& param, 0xFF,
sizeof(param));
66 stub_alloc_always_fails=
false;
67 stub_alloc_fails_after_count= 1000;
69 init_event_name_sizing(& param);
71 ok(rc == 0,
"init stage class");
73 ok(rc == 0,
"init statement class");
77 stub_alloc_fails_after_count= 1;
79 ok(rc == 1,
"oom (account)");
82 stub_alloc_fails_after_count= 2;
84 ok(rc == 1,
"oom (account waits)");
87 stub_alloc_fails_after_count= 3;
89 ok(rc == 1,
"oom (account stages)");
92 stub_alloc_fails_after_count= 4;
94 ok(rc == 1,
"oom (account statements)");
110 int main(
int,
char **)
113 MY_INIT(
"pfs_account-oom-t");