From df67606ba8a9926c3c82ce531d2312460c42cce6 Mon Sep 17 00:00:00 2001 From: amalec Date: Thu, 25 Oct 2001 22:17:03 +0000 Subject: [PATCH] Minor change to pack tests to ensure that tests don't pass accidentally git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@111 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- check/tests/check_check_pack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check/tests/check_check_pack.c b/check/tests/check_check_pack.c index 7798b93..8b24924 100644 --- a/check/tests/check_check_pack.c +++ b/check/tests/check_check_pack.c @@ -162,6 +162,7 @@ START_TEST(test_pack_fail_limit) buf = emalloc (CK_MAXMSGBUF); fmsg.msg = ""; pack(CK_MSG_FAIL,buf,&fmsg); + fmsg.msg = "abc"; upack(buf,&fmsg,&type); fail_unless (strcmp(fmsg.msg, "") == 0, "Empty string not handled properly"); free(fmsg.msg); @@ -182,6 +183,7 @@ START_TEST(test_pack_loc_limit) lmsg.file = ""; lmsg.line = 0; pack(CK_MSG_LOC,buf,&lmsg); + lmsg.file = "abc"; upack(buf,&lmsg,&type); fail_unless (strcmp(lmsg.file, "") == 0, "Empty string not handled properly"); -- 2.40.0