aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-20 13:24:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-20 13:24:43 -0300
commit540d8052265776451bb9f0ab4dee4ec860563cbe (patch)
tree697f573e601d7eb5f1b5fac4026e3f9505ae8ddb /testes
parent7d6a97e42bc3328b9c5ec1dabbd7e280e81c3efd (diff)
downloadlua-540d8052265776451bb9f0ab4dee4ec860563cbe.tar.gz
lua-540d8052265776451bb9f0ab4dee4ec860563cbe.tar.bz2
lua-540d8052265776451bb9f0ab4dee4ec860563cbe.zip
Towards Lua 5.5
Diffstat (limited to '')
-rw-r--r--testes/all.lua2
-rw-r--r--testes/calls.lua2
-rw-r--r--testes/main.lua6
3 files changed, 5 insertions, 5 deletions
diff --git a/testes/all.lua b/testes/all.lua
index a8e44024..279694ae 100644
--- a/testes/all.lua
+++ b/testes/all.lua
@@ -3,7 +3,7 @@
3-- See Copyright Notice at the end of this file 3-- See Copyright Notice at the end of this file
4 4
5 5
6local version = "Lua 5.4" 6local version = "Lua 5.5"
7if _VERSION ~= version then 7if _VERSION ~= version then
8 io.stderr:write("This test suite is for ", version, 8 io.stderr:write("This test suite is for ", version,
9 ", not for ", _VERSION, "\nExiting tests") 9 ", not for ", _VERSION, "\nExiting tests")
diff --git a/testes/calls.lua b/testes/calls.lua
index cd2696e8..ea384224 100644
--- a/testes/calls.lua
+++ b/testes/calls.lua
@@ -448,7 +448,7 @@ print("testing binary chunks")
448do 448do
449 local header = string.pack("c4BBc6BBB", 449 local header = string.pack("c4BBc6BBB",
450 "\27Lua", -- signature 450 "\27Lua", -- signature
451 0x54, -- version 5.4 (0x54) 451 0x55, -- version 5.5 (0x55)
452 0, -- format 452 0, -- format
453 "\x19\x93\r\n\x1a\n", -- data 453 "\x19\x93\r\n\x1a\n", -- data
454 4, -- size of instruction 454 4, -- size of instruction
diff --git a/testes/main.lua b/testes/main.lua
index 9187420e..9c8be580 100644
--- a/testes/main.lua
+++ b/testes/main.lua
@@ -134,7 +134,7 @@ RUN('env LUA_INIT= LUA_PATH=x lua %s > %s', prog, out)
134checkout("x\n") 134checkout("x\n")
135 135
136-- test LUA_PATH_version 136-- test LUA_PATH_version
137RUN('env LUA_INIT= LUA_PATH_5_4=y LUA_PATH=x lua %s > %s', prog, out) 137RUN('env LUA_INIT= LUA_PATH_5_5=y LUA_PATH=x lua %s > %s', prog, out)
138checkout("y\n") 138checkout("y\n")
139 139
140-- test LUA_CPATH 140-- test LUA_CPATH
@@ -143,7 +143,7 @@ RUN('env LUA_INIT= LUA_CPATH=xuxu lua %s > %s', prog, out)
143checkout("xuxu\n") 143checkout("xuxu\n")
144 144
145-- test LUA_CPATH_version 145-- test LUA_CPATH_version
146RUN('env LUA_INIT= LUA_CPATH_5_4=yacc LUA_CPATH=x lua %s > %s', prog, out) 146RUN('env LUA_INIT= LUA_CPATH_5_5=yacc LUA_CPATH=x lua %s > %s', prog, out)
147checkout("yacc\n") 147checkout("yacc\n")
148 148
149-- test LUA_INIT (and its access to 'arg' table) 149-- test LUA_INIT (and its access to 'arg' table)
@@ -153,7 +153,7 @@ checkout("3.2\n")
153 153
154-- test LUA_INIT_version 154-- test LUA_INIT_version
155prepfile("print(X)") 155prepfile("print(X)")
156RUN('env LUA_INIT_5_4="X=10" LUA_INIT="X=3" lua %s > %s', prog, out) 156RUN('env LUA_INIT_5_5="X=10" LUA_INIT="X=3" lua %s > %s', prog, out)
157checkout("10\n") 157checkout("10\n")
158 158
159-- test LUA_INIT for files 159-- test LUA_INIT for files