diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-11 10:32:40 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-20 11:31:07 +0200 |
commit | 67c385046dbf4fe00871bb9f56b6b82e1f9d1348 (patch) | |
tree | a68a191ff50ac11d4eec5eb687253596b89119a7 /tests/tbf | |
parent | fecece0e59ab5ff705887a1247df6e02836d7c66 (diff) |
tbf/test: Optionally show talloc report
To show the talloc report more easily, this commit adds a call to
talloc_report_full if the TALLOC_REPORT_FULL environment variable is
set (the value is ignored). Since the stderr output is checked by the
test suite, this feature is not enabled by default.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/tbf')
-rw-r--r-- | tests/tbf/TbfTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp index 9d016365..d5bcb674 100644 --- a/tests/tbf/TbfTest.cpp +++ b/tests/tbf/TbfTest.cpp @@ -378,6 +378,9 @@ int main(int argc, char **argv) test_tbf_final_ack(TEST_MODE_REVERSE_FREE); test_tbf_delayed_release(); test_tbf_exhaustion(); + + if (getenv("TALLOC_REPORT_FULL")) + talloc_report_full(tall_pcu_ctx, stderr); return EXIT_SUCCESS; } |