aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cpp-unit-tests/main.cc
diff options
context:
space:
mode:
authorAdam Domurad <[email protected]>2013-06-21 11:39:00 -0400
committerAdam Domurad <[email protected]>2013-06-21 11:39:00 -0400
commit698509ab278c4af69c055c7c8fb69141000d1895 (patch)
treef61aee57b4726333389a70f8507e69ee606e2ae9 /tests/cpp-unit-tests/main.cc
parentda8ec0b9cba22448fbb5b599bff3e1f5fb8c0bf7 (diff)
More unit tests for scriptable object creation, destruction
Diffstat (limited to 'tests/cpp-unit-tests/main.cc')
-rw-r--r--tests/cpp-unit-tests/main.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/cpp-unit-tests/main.cc b/tests/cpp-unit-tests/main.cc
index 2afacf2..d7e71f6 100644
--- a/tests/cpp-unit-tests/main.cc
+++ b/tests/cpp-unit-tests/main.cc
@@ -85,18 +85,18 @@ public:
float secondsElapsed) {
int posttest_allocs = cpp_unfreed_allocations();
+ std::string testname = full_testname(details);
if (browsermock_unfreed_allocations() > 0) {
- printf("*** WARNING: Memory leak! %d more NPAPI allocations than frees!\n",
- browsermock_unfreed_allocations());
+ printf("*** WARNING: %s has a memory leak! %d more NPAPI allocations than frees!\n",
+ testname.c_str(), browsermock_unfreed_allocations());
}
if (posttest_allocs > pretest_allocs) {
- printf("*** WARNING: Memory leak! %d more operator 'new' allocations than 'delete's!\n",
- posttest_allocs - pretest_allocs);
+ printf("*** WARNING: %s has a memory leak! %d more operator 'new' allocations than 'delete's!\n",
+ testname.c_str(), posttest_allocs - pretest_allocs);
}
if (did_finish_correctly) {
- std::string testname = full_testname(details);
printf("Passed: %s\n", testname.c_str());
}
}