trying to figure out why some run_tests tests are not working

This commit is contained in:
Enno Rehling 2012-05-20 03:21:38 +02:00
parent a342e846bc
commit 3fa4a31d14
3 changed files with 5 additions and 4 deletions

View File

@ -471,11 +471,11 @@ function test_mallorn()
process_orders()
assert(u1:get_item("log")==2)
assert(u2:get_item("log")==2)
assert_equal(2, u1:get_item("log"))
assert_equal(2, u2:get_item("log"))
local mallorn_cfg = config.get_resource("mallorn")
if mallorn_cfg then
assert(u3:get_item("mallorn")==1)
assert_equal(1, u3:get_item("mallorn"))
else
assert_equal(-1, u3:get_item("mallorn"))
assert_equal(0, u3:get_item("log"))

View File

@ -162,6 +162,7 @@ rparagraph(FILE * F, const char *str, ptrdiff_t indent, int hanging_indent,
size_t length = REPORTWIDTH;
const char *end, *begin;
if (!str) return;
/* find out if there's a mark + indent already encoded in the string. */
if (!mark) {
const char *x = str;

View File

@ -33,7 +33,7 @@ extern "C" {
typedef struct mlist {
struct mlist *next;
struct message *msg;
};
} mlist;
typedef struct message_list {
struct mlist *begin, **end;