From 35e1d6538a8767526b9cae66134441b146503a21 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 1 Jan 2011 17:33:42 +0100 Subject: unittest: framework for unit-testing This is the first approach at doing fairly clean and easy to write and debug unit tests. --- tests/libtest/Makefile.inc | 1 + tests/libtest/first.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/libtest') diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc index a0f1c0ecb..2354ecc60 100644 --- a/tests/libtest/Makefile.inc +++ b/tests/libtest/Makefile.inc @@ -164,3 +164,4 @@ lib573_SOURCES = lib573.c $(SUPPORTFILES) $(TESTUTIL) lib578_SOURCES = lib578.c $(SUPPORTFILES) lib579_SOURCES = lib579.c $(SUPPORTFILES) + diff --git a/tests/libtest/first.c b/tests/libtest/first.c index a0e713f48..53b372ba5 100644 --- a/tests/libtest/first.c +++ b/tests/libtest/first.c @@ -37,7 +37,7 @@ char *libtest_arg2=NULL; char *libtest_arg3=NULL; int test_argc; char **test_argv; - +int unitfail; /* for unittests */ int main(int argc, char **argv) { -- cgit v1.2.3