aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-11-24 12:23:24 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commit4ba31c3fbafa1b8e81e978189be20f3082765618 (patch)
tree55d6aeafac8266e21e05e11fd5eac91316646e56 /src
parenttests: add first tests + test framework (diff)
downloadterminology-4ba31c3fbafa1b8e81e978189be20f3082765618.tar.gz
tests: differentiate NULL on prop.icon or prop.title
Diffstat (limited to 'src')
-rw-r--r--src/bin/tyfuzz.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/tyfuzz.c b/src/bin/tyfuzz.c
index 40bb0c4..c80b34e 100644
--- a/src/bin/tyfuzz.c
+++ b/src/bin/tyfuzz.c
@@ -138,12 +138,20 @@ _tytest_checksum(Termpty *ty)
(unsigned char const*)ty->prop.icon,
strlen(ty->prop.icon));
}
+ else
+ {
+ MD5Update(&ctx, (unsigned char const*)"(NULL)", 6);
+ }
if (ty->prop.title)
{
MD5Update(&ctx,
(unsigned char const*)ty->prop.title,
strlen(ty->prop.title));
}
+ else
+ {
+ MD5Update(&ctx, (unsigned char const*)"(NULL)", 6);
+ }
MD5Final(hash, &ctx);