diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-01-01 17:33:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-01-03 19:38:10 +0100 |
commit | 35e1d6538a8767526b9cae66134441b146503a21 (patch) | |
tree | 871888fc2da33021b88546f78c33e90add2d675b /tests/libtest | |
parent | 45cea7196870f2b5e7096a619dc1a9725295ca1a (diff) |
unittest: framework for unit-testing
This is the first approach at doing fairly clean and easy to write and
debug unit tests.
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/Makefile.inc | 1 | ||||
-rw-r--r-- | tests/libtest/first.c | 2 |
2 files changed, 2 insertions, 1 deletions
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) { |