projects/aports·blob master · refs

32 lines · 803 B

1- Don't overwrite package.cpath to make LUA_CPATH work.
2- Exit if modules cannot be loaded.
3
4diff --git a/tests/test.lua b/tests/test.lua
5index 503e3f4..7168bbd 100755
6--- a/tests/test.lua
7+++ b/tests/test.lua
8@@ -45,7 +45,7 @@ end
9 local self = arg[0]
10
11 package.path = "../?.lua;../?/init.lua"
12-package.cpath = "./?-"..V..".so;./?-"..V..".dll;./?.so;./?.dll"
13+package.cpath = "./?-"..V..".so;./?-"..V..".dll;./?.so;./?.dll;"..package.cpath
14 if mode == "module" then
15 print("testing Lua API using `compat53.module` ...")
16 _ENV = require("compat53.module")
17@@ -281,6 +281,7 @@ if utf8.len then
18 ___''
19 else
20 print("XXX: utf8 module not available")
21+ os.exit(1)
22 end
23
24
25@@ -291,6 +292,7 @@ if string.pack then
26 ___''
27 else
28 print("XXX: string packing not available")
29+ os.exit(1)
30 end
31
32