From 4ba31c3fbafa1b8e81e978189be20f3082765618 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 24 Nov 2018 12:23:24 +0100 Subject: [PATCH] tests: differentiate NULL on prop.icon or prop.title --- src/bin/tyfuzz.c | 8 ++++++++ tests/tests.results | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/bin/tyfuzz.c b/src/bin/tyfuzz.c index 40bb0c4a..c80b34e3 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); diff --git a/tests/tests.results b/tests/tests.results index 24282845..3349d121 100644 --- a/tests/tests.results +++ b/tests/tests.results @@ -1,2 +1,2 @@ -decfra-no-restrict-cursor.sh 433641ae9b98af9dac2b8da49e1ae321 -decfra-restrict-cursor.sh ebc4be442e89e6e70d1783063429c004 +decfra-no-restrict-cursor.sh 236d1c32fe49c8762ad204510117b1da +decfra-restrict-cursor.sh 898682203275b186e6c81424b93b1b79