projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use warning code in xkeyboard-config test
[platform/upstream/libxkbcommon.git]
/
test
/
utils.c
diff --git
a/test/utils.c
b/test/utils.c
index
a385a78
..
052289e
100644
(file)
--- a/
test/utils.c
+++ b/
test/utils.c
@@
-46,5
+46,11
@@
main(void)
assert(!snprintf_safe(buffer, 10, "%s", "1234567890"));
assert(snprintf_safe(buffer, 10, "%s", "123456789"));
assert(!snprintf_safe(buffer, 10, "%s", "1234567890"));
assert(snprintf_safe(buffer, 10, "%s", "123456789"));
+ assert(streq_null("foo", "foo"));
+ assert(!streq_null("foobar", "foo"));
+ assert(!streq_null("foobar", NULL));
+ assert(!streq_null(NULL, "foobar"));
+ assert(streq_null(NULL, NULL));
+
return 0;
}
return 0;
}