summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-12-13 12:09:40 +0100
committerJustus Winter <justus@g10code.com>2016-12-13 12:09:40 +0100
commit82280de1dbdf917892e3c240ec10ae9f5587dc7b (patch)
tree672066344cfff9c776ea8342e19d1b806cae0e04 /tests
parentc83d0d2a26059cf471d09f5cb8e7fc5d76c4907b (diff)
downloadlibgcrypt-82280de1dbdf917892e3c240ec10ae9f5587dc7b.tar.gz
tests: Rename 'errorcount' to 'error_count'.
-- Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/t-common.h6
-rw-r--r--tests/t-lock.c2
-rw-r--r--tests/t-secmem.c4
-rw-r--r--tests/t-sexp.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/t-common.h b/tests/t-common.h
index 68a78046..bd9293c8 100644
--- a/tests/t-common.h
+++ b/tests/t-common.h
@@ -50,7 +50,7 @@
/* Standard global variables. */
static int verbose;
static int debug;
-static int errorcount;
+static int error_count;
/* If we have a decent libgpg-error we can use some gcc attributes. */
#ifdef GPGRT_ATTR_NORETURN
@@ -101,8 +101,8 @@ fail (const char *format, ...)
#ifdef HAVE_FLOCKFILE
funlockfile (stderr);
#endif
- errorcount++;
- if (errorcount >= 50)
+ error_count++;
+ if (error_count >= 50)
die ("stopped after 50 errors.");
}
diff --git a/tests/t-lock.c b/tests/t-lock.c
index 2c1997d3..cb94d655 100644
--- a/tests/t-lock.c
+++ b/tests/t-lock.c
@@ -454,5 +454,5 @@ main (int argc, char **argv)
if (verbose)
print_accounts ();
- return errorcount ? 1 : 0;
+ return error_count ? 1 : 0;
}
diff --git a/tests/t-secmem.c b/tests/t-secmem.c
index cb2313e2..6c78a46f 100644
--- a/tests/t-secmem.c
+++ b/tests/t-secmem.c
@@ -174,7 +174,7 @@ main (int argc, char **argv)
gcry_control (PRIV_CTL_DUMP_SECMEM_STATS, 0 , 0);
gcry_control (GCRYCTL_DUMP_SECMEM_STATS, 0 , 0);
}
- info ("All tests completed. Errors: %d\n", errorcount);
+ info ("All tests completed. Errors: %d\n", error_count);
gcry_control (GCRYCTL_TERM_SECMEM, 0 , 0);
- return !!errorcount;
+ return !!error_count;
}
diff --git a/tests/t-sexp.c b/tests/t-sexp.c
index edb37a2a..0d8b298c 100644
--- a/tests/t-sexp.c
+++ b/tests/t-sexp.c
@@ -1188,5 +1188,5 @@ main (int argc, char **argv)
check_extract_param ();
bug_1594 ();
- return errorcount? 1:0;
+ return error_count? 1:0;
}