Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
DateFileResult comparisons should be == not !=
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 25 Feb 2016 22:33:14 +0000 (22:33 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 25 Feb 2016 22:33:14 +0000 (22:33 +0000)
source/tests/xestiacalendar_caldav.h

index 955113b..67b4d2d 100644 (file)
@@ -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;
        }
 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy