aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2020-07-08 20:25:09 +0200
committerPhilipp Janda <siffiejoe@gmx.net>2020-07-08 20:25:09 +0200
commit931652ad9ef34c99e53007de9f92bfd5a397a219 (patch)
treeaf2332578152b1ec65b3867e87c04ab2190734ad /tests
parenta1735f6e6bd17588fcaf98720f0548c4caa23b34 (diff)
downloadlua-compat-5.3-931652ad9ef34c99e53007de9f92bfd5a397a219.tar.gz
lua-compat-5.3-931652ad9ef34c99e53007de9f92bfd5a397a219.tar.bz2
lua-compat-5.3-931652ad9ef34c99e53007de9f92bfd5a397a219.zip
Make it usable on Lua 5.4v0.8
Diffstat (limited to 'tests')
-rw-r--r--tests/testmod.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testmod.c b/tests/testmod.c
index 3bf2cd3..0d73ed4 100644
--- a/tests/testmod.c
+++ b/tests/testmod.c
@@ -1,5 +1,6 @@
1#include <stdio.h> 1#include <stdio.h>
2#include <stdlib.h> 2#include <stdlib.h>
3#include <errno.h>
3#include "compat-5.3.h" 4#include "compat-5.3.h"
4 5
5 6
@@ -285,6 +286,7 @@ static int test_buffer (lua_State *L) {
285 286
286static int test_exec (lua_State *L) { 287static int test_exec (lua_State *L) {
287 const char *cmd = luaL_checkstring(L, 1); 288 const char *cmd = luaL_checkstring(L, 1);
289 errno = 0;
288 return luaL_execresult(L, system(cmd)); 290 return luaL_execresult(L, system(cmd));
289} 291}
290 292