mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04:00
[TESTS] Fix format data type in test asserts.
This commit is contained in:
parent
4e3a33acda
commit
63edf012bd
3 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ static int test = 0;
|
||||||
|
|
||||||
#define TASSERT( a ) { \
|
#define TASSERT( a ) { \
|
||||||
assert ( a ); \
|
assert ( a ); \
|
||||||
printf ( "Test %i passed (%s)\n", ++test, # a ); \
|
printf ( "Test %u passed (%s)\n", ++test, # a ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *file = "text";
|
const char *file = "text";
|
||||||
|
|
|
@ -43,14 +43,14 @@
|
||||||
unsigned int test =0;
|
unsigned int test =0;
|
||||||
#define TASSERT( a ) { \
|
#define TASSERT( a ) { \
|
||||||
assert ( a ); \
|
assert ( a ); \
|
||||||
printf ( "Test %3i passed (%s)\n", ++test, # a ); \
|
printf ( "Test %3u passed (%s)\n", ++test, # a ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define TASSERTE( a, b ) { \
|
#define TASSERTE( a, b ) { \
|
||||||
if ( ( 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 { \
|
}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 ( ); \
|
abort ( ); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
unsigned int test =0;
|
unsigned int test =0;
|
||||||
#define TASSERT( a ) { \
|
#define TASSERT( a ) { \
|
||||||
assert ( 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 )
|
gboolean config_parse_set_property ( G_GNUC_UNUSED const Property *p, G_GNUC_UNUSED char **error )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue