aboutsummaryrefslogtreecommitdiffstats
path: root/t/test_configuration.c
diff options
context:
space:
mode:
Diffstat (limited to 't/test_configuration.c')
-rw-r--r--t/test_configuration.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/test_configuration.c b/t/test_configuration.c
index 36d23ca..5a3d150 100644
--- a/t/test_configuration.c
+++ b/t/test_configuration.c
@@ -68,11 +68,13 @@ END_TEST
START_TEST (test_source_list)
{
+ slapt_source_t *src = slapt_init_source("http://www.test.org/dist");
struct slapt_source_list *s = slapt_init_source_list();
fail_if (s == NULL);
fail_if (s->count != 0);
- slapt_add_source(s,"http://www.test.org/dist/");
+ fail_if (src == NULL);
+ slapt_add_source(s, src);
fail_if (s->count != 1);
slapt_remove_source (s,"http://www.test.org/dist/");