summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Martin <consume.noise@gmail.com>2017-10-27 16:11:55 +0200
committerAdam Jackson <ajax@redhat.com>2017-12-13 10:05:53 -0500
commit8817747c8587d75c14e00069e8f26e3edb671013 (patch)
tree98ce57d12004791bca98866bf05468f276e08790
parente663998fa8bb77bb753abed1e0c12922d4ce1669 (diff)
test: signal-logging: Fix looping signed number tests
unsigned_tests[] was used to compute the amount of signed numbers to test. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (cherry picked from commit 15a32ee5d1fffa171bb05af9a0e5b472e4af1488)
-rw-r--r--test/signal-logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/signal-logging.c b/test/signal-logging.c
index 7f2972003..1af6316de 100644
--- a/test/signal-logging.c
+++ b/test/signal-logging.c
@@ -146,7 +146,7 @@ number_formatting(void)
for (i = 0; i < sizeof(unsigned_tests) / sizeof(unsigned_tests[0]); i++)
assert(check_number_format_test(unsigned_tests[i]));
- for (i = 0; i < sizeof(unsigned_tests) / sizeof(signed_tests[0]); i++)
+ for (i = 0; i < sizeof(signed_tests) / sizeof(signed_tests[0]); i++)
assert(check_signed_number_format_test(signed_tests[i]));
for (i = 0; i < sizeof(float_tests) / sizeof(float_tests[0]); i++)