]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
CID 1341533: Missing assertion in sntp/tests/t-log.c. HStenn.
authorCoverity Build <stenn@ntp.org>
Thu, 3 Dec 2015 10:00:58 +0000 (02:00 -0800)
committerCoverity Build <stenn@ntp.org>
Thu, 3 Dec 2015 10:00:58 +0000 (02:00 -0800)
bk: 566012dajEfgn2nXTA0GsbIrs6d-4g

ChangeLog
sntp/tests/t-log.c

index a2671afca52f3fdf5bcbe321345e62db7226d5ee..8cbc02f039b270d06425c865b796f610e0251b2c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 * [Sec 2956] small-step/big-step.  Close the panic gate earlier.  HStenn.
 * CID 1339955: Free allocated memory in caljulian test.  HStenn.
 * CID 1339962: Explicitly initialize variable in caljulian test.  HStenn.
+* CID 1341533: Missing assertion in sntp/tests/t-log.c.  HStenn.
 * CID 1341534: Resource leak in tests/ntpd/t-ntp_signd.c.  HStenn.
 * CID 1341535: Resource leak in tests/ntpd/t-ntp_signd.c.  HStenn.
 * CID 1341536: Resource leak in tests/ntpd/t-ntp_signd.c.  HStenn.
index 6975b1a21034a366ce92059b49ceb32853fc1c76..7f8fadbe0ddec373f9fee722af08c99fece9f7d5 100644 (file)
@@ -64,6 +64,8 @@ testWriteInCustomLogfile(void)
        FILE * f = fopen("testLogfile2.log","r");
        char line[256];
 
+       TEST_ASSERT_TRUE( f != NULL);
+
        //should be only 1 line
        while (fgets(line, sizeof(line), f)) {
                printf("%s", line);