Use TailQ instead of sys/queue.h in the logging module

This commit is contained in:
Nils O. Selåsdal
2014-04-19 00:20:11 +02:00
parent 975b8ad1bc
commit edde6ec7b6
2 changed files with 37 additions and 18 deletions
+9
View File
@@ -292,6 +292,15 @@ START_TEST (test_logfile_remove_dest)
fail_if(rc != 0, "2. stat failed: %s\n", strerror(errno));
fail_if(st.st_size != 77*2, "was %ld\n", (long)st.st_size);//should be same size
//removing the last destination should be fine too
uc_log_remove_destination(dest2);
UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson %d\n", 1);
rc = stat(FILE_NAME, &st);
fail_if(rc != 0, "2. stat failed: %s\n", strerror(errno));
fail_if(st.st_size != 77*2, "was %ld\n", (long)st.st_size);//should be same size
END_TEST
START_TEST (test_logfile_full_filesystem)