summaryrefslogtreecommitdiff
path: root/test/basictests.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-09-10 14:11:50 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-09-10 14:11:50 +0100
commite7e71a94cdf413ca27cf77729867c940db589353 (patch)
tree760f07dca5e7a960b75225400481eb01c5333a72 /test/basictests.c
parentfbebd45ac3204addce4240df475b9565f47df492 (diff)
downloadlibnslog-e7e71a94cdf413ca27cf77729867c940db589353.tar.gz
libnslog-e7e71a94cdf413ca27cf77729867c940db589353.tar.bz2
Add cleanup to nslog
Diffstat (limited to 'test/basictests.c')
-rw-r--r--test/basictests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/basictests.c b/test/basictests.c
index a331b2f..19e8bd2 100644
--- a/test/basictests.c
+++ b/test/basictests.c
@@ -61,7 +61,7 @@ with_simple_context_setup(void)
static void
with_simple_context_teardown(void)
{
- /* Nothing to do to tear down */
+ nslog_cleanup();
}
START_TEST (test_nslog_trivial_corked_message)
@@ -194,12 +194,12 @@ with_simple_filter_context_setup(void)
static void
with_simple_filter_context_teardown(void)
{
- /* Nothing to do to tear down */
fail_unless(nslog_filter_set_active(NULL, NULL) == NSLOG_NO_ERROR,
"Unable to clear active filter");
cat_test = nslog_filter_unref(cat_test);
cat_another = nslog_filter_unref(cat_another);
cat_test_sub = nslog_filter_unref(cat_test_sub);
+ nslog_cleanup();
}
START_TEST (test_nslog_simple_filter_corked_message)
@@ -377,9 +377,9 @@ with_trivial_filter_context_setup(void)
static void
with_trivial_filter_context_teardown(void)
{
- /* Nothing to do to tear down */
fail_unless(nslog_filter_set_active(NULL, NULL) == NSLOG_NO_ERROR,
"Unable to clear active filter");
+ nslog_cleanup();
}
START_TEST (test_nslog_filter_filename)