diff options
author | Max <msuraev@sysmocom.de> | 2017-11-21 18:13:31 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-01-25 16:12:57 +0000 |
commit | 2ecf0fdfc26efd5f504c0bcec28f233bd06693d7 (patch) | |
tree | 824f0faac3a0ad47b66a380b8a0ef46f6409bce5 /tests/emu | |
parent | 46fbfceac6dfa6641d3e00c1a102622550bb7190 (diff) |
AllocTest: adjust test_alloc_b()
This function contains 3 independent test cases. Let's split them into
separate functions to simplify further modifications:
* split test cases into separate functions
* use them for mass test as well
* change function names to avoid confusion
* make individual test cases return error instead of failing via assert
on allocation failure
The top-level test_alloc_b() is used as part of exhaustion tests in
test_all_alloc_b() for example, so it's expected that allocation might
fail (due to TFI or USF exhaustion for example) eventually. In this case
it's better to indicate it to caller instead of failing entire program.
The test output does not require any adjustements because we do not
exhaust to the point of allocation failure yet.
Change-Id: Id7e03a85ce96e7d617cecee963759bae589a3a1a
Related: OS#2282
Diffstat (limited to 'tests/emu')
0 files changed, 0 insertions, 0 deletions