tests: differentiate NULL on prop.icon or prop.title

This commit is contained in:
Boris Faure 2018-11-24 12:23:24 +01:00
parent 826606e0c3
commit 4ba31c3fba
2 changed files with 10 additions and 2 deletions

View File

@ -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);

View File

@ -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