Skip to content
Snippets Groups Projects
Commit 4bbc7465 authored by Timur Safin's avatar Timur Safin Committed by Vladimir Davydov
Browse files

test: make fiber_stack.test tap-compatible

NO_DOC=internal
NO_CHANGELOG=internal

(cherry picked from commit 98f62cd0)
parent 208fdbbe
No related branches found
No related tags found
No related merge requests found
#include "memory.h"
#include "fiber.h"
#include "unit.h"
#include "trivia/util.h"
#include "errinj.h"
#define UNIT_TAP_COMPATIBLE 1
#include "unit.h"
static struct fiber_attr default_attr;
/** Total count of allocated fibers in the cord. Including dead ones. */
......
SystemError: fiber mprotect failed: Cannot allocate memory
*** main_f ***
1..11
ok 1 - fiber_attr: the default stack size is 528384, but 528384 is set via CMake
ok 2 - mprotect: failed to setup fiber guard page
ok 3 - mprotect: diag is armed after error
ok 4 - allocated new
ok 5 - madvise: non critical error on madvise hint
ok 6 - madvise: diag is armed after error
ok 7 - fiber is deleted
ok 8 - fiber with custom stack
ok 9 - allocated new
ok 10 - expected leak detected
ok 11 - fiber is deleted
*** main_f: done ***
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment