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));
65 stub_alloc_always_fails=
false;
66 stub_alloc_fails_after_count= 1000;
68 init_event_name_sizing(& param);
70 ok(rc == 0,
"init stage class");
72 ok(rc == 0,
"init statement class");
76 stub_alloc_fails_after_count= 1;
78 ok(rc == 1,
"oom (user)");
81 stub_alloc_fails_after_count= 2;
83 ok(rc == 1,
"oom (user waits)");
86 stub_alloc_fails_after_count= 3;
88 ok(rc == 1,
"oom (user stages)");
91 stub_alloc_fails_after_count= 4;
93 ok(rc == 1,
"oom (user statements)");
109 int main(
int,
char **)
112 MY_INIT(
"pfs_user-oom-t");