From 05fa6773829828a9b6f1f32b008cb5f2d19043e6 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Mon, 24 Dec 2012 10:43:15 +0000 Subject: [PATCH] Fixed unit test to accomodate mg_get_var() API change --- test/unit_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit_test.c b/test/unit_test.c index a76c5a67..231bbf59 100644 --- a/test/unit_test.c +++ b/test/unit_test.c @@ -255,11 +255,11 @@ static void test_mg_get_var(void) { ASSERT(buf[0] == '\0'); ASSERT(mg_get_var(post[0], strlen(post[0]), "d", buf, sizeof(buf)) == -1); - ASSERT(mg_get_var(post[0], strlen(post[0]), "c", buf, 2) == -1); + ASSERT(mg_get_var(post[0], strlen(post[0]), "c", buf, 2) == -2); ASSERT(mg_get_var(post[0], strlen(post[0]), "x", NULL, 10) == -2); ASSERT(mg_get_var(post[0], strlen(post[0]), "x", buf, 0) == -2); - ASSERT(mg_get_var(post[1], strlen(post[1]), "st", buf, 16) == -1); + ASSERT(mg_get_var(post[1], strlen(post[1]), "st", buf, 16) == -2); ASSERT(mg_get_var(post[1], strlen(post[1]), "st", buf, 17) == 16); }