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
This commit is contained in:
Jacob Erlbeck 2015-05-11 10:32:40 +02:00
parent fecece0e59
commit 67c385046d
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}