summaryrefslogtreecommitdiff
path: root/test/nsoption.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-07-08 22:17:20 +0100
committerVincent Sanders <vince@kyllikki.org>2015-07-08 22:17:20 +0100
commitcb3f267d4562c0a23ebf16b758e421d77c0dc51c (patch)
tree643759fb77c65294edb5be7b2429b3d777bb4fd4 /test/nsoption.c
parent8756793079c653e788f5932fc1d70cb35681cfc4 (diff)
downloadnetsurf-cb3f267d4562c0a23ebf16b758e421d77c0dc51c.tar.gz
netsurf-cb3f267d4562c0a23ebf16b758e421d77c0dc51c.tar.bz2
Add coverage to the unit test makefile targets
The tests now only require that the test name is added to the TESTS variable and a testname_SRCS is set with a list of required sources to compile.
Diffstat (limited to 'test/nsoption.c')
-rw-r--r--test/nsoption.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/nsoption.c b/test/nsoption.c
index 1c9116acb..0f079e9f7 100644
--- a/test/nsoption.c
+++ b/test/nsoption.c
@@ -9,7 +9,7 @@
#include "utils/log.h"
#include "utils/nsoption.h"
-bool verbose_log = true;
+
nserror gui_options_init_defaults(struct nsoption_s *defaults)
{
@@ -70,9 +70,11 @@ int main(int argc, char**argv)
{
FILE *fp;
+ verbose_log = false;
+
nsoption_init(gui_options_init_defaults, NULL, NULL);
- nsoption_read("data/Choices", NULL);
+ nsoption_read("test/data/Choices", NULL);
nsoption_write("Choices-short", NULL, NULL);