X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..a5ecf8c2c33ea8ca44bedccdef60eb7354102f66:/libtests/test.h diff --git a/libtests/test.h b/libtests/test.h index cada395..cfc4ebb 100644 --- a/libtests/test.h +++ b/libtests/test.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2005, 2007, 2008 Richard Kettlewell + * Copyright (C) 2005, 2007, 2008, 2010 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,7 +33,6 @@ #include #include #include -#include #include #include "mem.h" @@ -61,6 +60,7 @@ #include "addr.h" #include "base64.h" #include "url.h" +#include "regexp.h" #include "regsub.h" extern long long tests, errors; @@ -95,7 +95,7 @@ extern int skipped; const char *got = GOT; \ const char *want = WANT; \ \ - if(want == 0) { \ + if(got == 0) { \ fprintf(stderr, "%s:%d: %s returned 0\n", \ __FILE__, __LINE__, #GOT); \ count_error(); \