1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/lua_loader: fix NDEBUG compile problem

This commit is contained in:
Gunar Schorcht 2020-02-25 09:28:59 +01:00
parent 72278d3463
commit 8af912b002

View File

@ -26,11 +26,12 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "lua_run.h"
#include "lua_builtin.h"
#include "test_utils/expect.h"
static const uint8_t pure_module_1[] = "\n\
return {a='Quando uma lua'}\n\
";
@ -81,7 +82,7 @@ int main(void)
status = lua_riot_do_module("test", lua_mem, LUA_MEM_SIZE,
LUAR_LOAD_BASE, NULL);
assert(status == LUAR_EXIT);
expect(status == LUAR_EXIT);
while (fgets(linebuf, LINEBUF_SZ, stdin) != NULL) {
int status;
@ -98,7 +99,7 @@ int main(void)
status = lua_riot_do_buffer((unsigned char *)linebuf, linelen,
lua_mem, LUA_MEM_SIZE,
LUAR_LOAD_BASE | LUAR_LOAD_PACKAGE, NULL);
assert(status == LUAR_EXIT);
expect(status == LUAR_EXIT);
}
return 0;