Use TailQ instead of sys/queue.h in the logging module
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user