summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-02-02 11:17:50 +0100
committerDave Davenport <qball@gmpclient.org>2019-02-02 11:17:50 +0100
commit63edf012bdbbc6c34ed403cab773a0395abce82e (patch)
tree1caeb6ee10b662292e5535fb8b36c6511f4ef081 /test
parent4e3a33acda2db0fe21c602c594984f7e4a9509fd (diff)
[TESTS] Fix format data type in test asserts.
Diffstat (limited to 'test')
-rw-r--r--test/history-test.c2
-rw-r--r--test/scrollbar-test.c6
-rw-r--r--test/widget-test.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/history-test.c b/test/history-test.c
index 5d37469d..ddb1d065 100644
--- a/test/history-test.c
+++ b/test/history-test.c
@@ -37,7 +37,7 @@ static int test = 0;
#define TASSERT( a ) { \
assert ( a ); \
- printf ( "Test %i passed (%s)\n", ++test, # a ); \
+ printf ( "Test %u passed (%s)\n", ++test, # a ); \
}
const char *file = "text";
diff --git a/test/scrollbar-test.c b/test/scrollbar-test.c
index 8f7df86c..3f7d4af3 100644
--- a/test/scrollbar-test.c
+++ b/test/scrollbar-test.c
@@ -43,14 +43,14 @@
unsigned int test =0;
#define TASSERT( a ) { \
assert ( a ); \
- printf ( "Test %3i passed (%s)\n", ++test, # a ); \
+ printf ( "Test %3u passed (%s)\n", ++test, # a ); \
}
#define TASSERTE( a, b ) { \
if ( ( a ) == ( b ) ) { \
- printf ( "Test %i passed (%s == %s) (%u == %u)\n", ++test, # a, # b, a, b ); \
+ printf ( "Test %u passed (%s == %s) (%u == %u)\n", ++test, # a, # b, a, b ); \
}else { \
- printf ( "Test %i failed (%s == %s) (%u != %u)\n", ++test, # a, # b, a, b ); \
+ printf ( "Test %u failed (%s == %s) (%u != %u)\n", ++test, # a, # b, a, b ); \
abort ( ); \
} \
}
diff --git a/test/widget-test.c b/test/widget-test.c
index 0d2ac5e0..06625664 100644
--- a/test/widget-test.c
+++ b/test/widget-test.c
@@ -41,7 +41,7 @@
unsigned int test =0;
#define TASSERT( a ) { \
assert ( a ); \
- printf ( "Test %3i passed (%s)\n", ++test, # a ); \
+ printf ( "Test %3u passed (%s)\n", ++test, # a ); \
}
gboolean config_parse_set_property ( G_GNUC_UNUSED const Property *p, G_GNUC_UNUSED char **error )
{