[libxslt] tests: Remove unused leak statistics
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] tests: Remove unused leak statistics
- Date: Wed, 7 Sep 2022 23:25:23 +0000 (UTC)
commit f581d4c739a58ada8510e20e4c8743eb00938d74
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Wed Sep 7 23:03:33 2022 +0200
tests: Remove unused leak statistics
tests/runtest.c | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/tests/runtest.c b/tests/runtest.c
index 708fe38d..b76466b7 100644
--- a/tests/runtest.c
+++ b/tests/runtest.c
@@ -152,7 +152,6 @@ static void globfree(glob_t *pglob) {
static int nb_tests = 0;
static int nb_errors = 0;
-static int nb_leaks = 0;
static int
fatalError(void) {
@@ -794,24 +793,22 @@ static int tests_quiet = 0;
static int
runtest(int i) {
int ret = 0, res;
- int old_errors, old_tests, old_leaks;
+ int old_errors, old_tests;
old_errors = nb_errors;
old_tests = nb_tests;
- old_leaks = nb_leaks;
if ((tests_quiet == 0) && (testDescriptions[i].desc != NULL))
printf("## Running %s\n", testDescriptions[i].desc);
res = launchTests(&testDescriptions[i]);
if (res != 0)
ret++;
if (verbose) {
- if ((nb_errors == old_errors) && (nb_leaks == old_leaks))
+ if (nb_errors == old_errors)
printf("Ran %d tests, no errors\n", nb_tests - old_tests);
else
- printf("Ran %d tests, %d errors, %d leaks\n",
+ printf("Ran %d tests, %d errors\n",
nb_tests - old_tests,
- nb_errors - old_errors,
- nb_leaks - old_leaks);
+ nb_errors - old_errors);
}
return(ret);
}
@@ -855,14 +852,14 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
ret += runtest(i);
}
}
- if ((nb_errors == 0) && (nb_leaks == 0)) {
+ if (nb_errors == 0) {
ret = 0;
printf("Total %d tests, no errors\n",
nb_tests);
} else {
ret = 1;
- printf("Total %d tests, %d errors, %d leaks\n",
- nb_tests, nb_errors, nb_leaks);
+ printf("Total %d tests, %d errors\n",
+ nb_tests, nb_errors);
}
xmlCleanupParser();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]