forked from github/server
trying to figure out why some run_tests tests are not working
This commit is contained in:
parent
a342e846bc
commit
3fa4a31d14
3 changed files with 5 additions and 4 deletions
|
@ -471,11 +471,11 @@ function test_mallorn()
|
||||||
|
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
assert(u1:get_item("log")==2)
|
assert_equal(2, u1:get_item("log"))
|
||||||
assert(u2:get_item("log")==2)
|
assert_equal(2, u2:get_item("log"))
|
||||||
local mallorn_cfg = config.get_resource("mallorn")
|
local mallorn_cfg = config.get_resource("mallorn")
|
||||||
if mallorn_cfg then
|
if mallorn_cfg then
|
||||||
assert(u3:get_item("mallorn")==1)
|
assert_equal(1, u3:get_item("mallorn"))
|
||||||
else
|
else
|
||||||
assert_equal(-1, u3:get_item("mallorn"))
|
assert_equal(-1, u3:get_item("mallorn"))
|
||||||
assert_equal(0, u3:get_item("log"))
|
assert_equal(0, u3:get_item("log"))
|
||||||
|
|
|
@ -162,6 +162,7 @@ rparagraph(FILE * F, const char *str, ptrdiff_t indent, int hanging_indent,
|
||||||
size_t length = REPORTWIDTH;
|
size_t length = REPORTWIDTH;
|
||||||
const char *end, *begin;
|
const char *end, *begin;
|
||||||
|
|
||||||
|
if (!str) return;
|
||||||
/* find out if there's a mark + indent already encoded in the string. */
|
/* find out if there's a mark + indent already encoded in the string. */
|
||||||
if (!mark) {
|
if (!mark) {
|
||||||
const char *x = str;
|
const char *x = str;
|
||||||
|
|
|
@ -33,7 +33,7 @@ extern "C" {
|
||||||
typedef struct mlist {
|
typedef struct mlist {
|
||||||
struct mlist *next;
|
struct mlist *next;
|
||||||
struct message *msg;
|
struct message *msg;
|
||||||
};
|
} mlist;
|
||||||
|
|
||||||
typedef struct message_list {
|
typedef struct message_list {
|
||||||
struct mlist *begin, **end;
|
struct mlist *begin, **end;
|
||||||
|
|
Loading…
Reference in a new issue