diff --git a/test/test_logging.c b/test/test_logging.c index 1dfaaf9..c5ef3ea 100644 --- a/test/test_logging.c +++ b/test/test_logging.c @@ -312,7 +312,7 @@ START_TEST (test_logfile_invalid_file_after_repoen) logging_rm_subdir(); rc = access(SUBDIR_FILE_NAME, W_OK); - fail_if(rc == NULL, "Test setup is wrong. Can still access" SUBDIR_FILE_NAME "\n"); + fail_if(rc == 0, "Test setup is wrong. Can still access" SUBDIR_FILE_NAME "\n"); UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson %d\n", 1); UC_LOGF(UC_LL_WARNING, 0, "Lorum ipson %d\n", 1);