aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tbf/TbfTest.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-11 10:32:40 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-20 11:31:07 +0200
commit67c385046dbf4fe00871bb9f56b6b82e1f9d1348 (patch)
treea68a191ff50ac11d4eec5eb687253596b89119a7 /tests/tbf/TbfTest.cpp
parentfecece0e59ab5ff705887a1247df6e02836d7c66 (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/TbfTest.cpp')
-rw-r--r--tests/tbf/TbfTest.cpp3
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;
}