From c14390fbfaba8096f8d77c3acd957b590397abe8 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Thu, 25 Feb 2016 22:33:14 +0000 Subject: [PATCH] DateFileResult comparisons should be == not != --- source/tests/xestiacalendar_caldav.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/tests/xestiacalendar_caldav.h b/source/tests/xestiacalendar_caldav.h index 955113b..67b4d2d 100644 --- a/source/tests/xestiacalendar_caldav.h +++ b/source/tests/xestiacalendar_caldav.h @@ -39,28 +39,28 @@ TEST(CalDAV, BasicTests){ // Attempt to read the caldavtest-plain.auth file. DataFileResult = ProcessConnectionDataFile("caldavtest-plain.auth", &ConnPlain); - if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){ + if (DataFileResult == PROCESSCONNECTIONDATAFILE_OK){ ValidDataPlain = true; } // Attempt to read the caldavtest.auth file. DataFileResult = ProcessConnectionDataFile("caldavtest.auth", &ConnNormal); - if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){ + if (DataFileResult == PROCESSCONNECTIONDATAFILE_OK){ ValidDataNormal = true; } // Attempt to read the caldavtest-fail.auth file. DataFileResult = ProcessConnectionDataFile("caldavtest-fail.auth", &ConnFail); - if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){ + if (DataFileResult == PROCESSCONNECTIONDATAFILE_OK){ ValidDataFail = true; } // Attempt to read the caldavtest-timeout.auth file. DataFileResult = ProcessConnectionDataFile("caldavtest-fail.auth", &ConnTimeout); - if (DataFileResult != PROCESSCONNECTIONDATAFILE_OK){ + if (DataFileResult == PROCESSCONNECTIONDATAFILE_OK){ ValidDataTimeout = true; } -- 2.39.5