[Tarantool-patches] [PATCH v6 1/2] fiber: set diagnostics at madvise/mprotect failure
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Fri Feb 14 02:26:09 MSK 2020
>>> diff --git a/test/unit/fiber_stack.cc b/test/unit/fiber_stack.cc
>>> new file mode 100644
>>> index 000000000..de7fe90e3
>>> --- /dev/null
>>> +++ b/test/unit/fiber_stack.cc
>>
>> 4. Do you need C++ here?
>
> The C++ was choosen because we already have fiber_XXX.cc tests
> so I simply tried to follow.
>
>> 5. I would call it fiber_errinj.c. In future we may want to
>> add more tests here, which use error injections. Up to you.
>
> From one point of view having one big test which would cover
> various aspects of tarantool might help discovering unexpectedly
> connected bugs.
In case of unit tests it is rather about reducing code duplication.
Because any fiber unit test on C includes the same headers, does
the same preparations in main(), may need some common utilities.
More information about the Tarantool-patches
mailing list