Only check return type in xpcall pass tests

The error message is more specific with luaj
This commit is contained in:
Enrico Horn
2021-07-11 13:41:05 +02:00
parent 2fdcf5e2ac
commit 4802623aa3
2 changed files with 38 additions and 38 deletions

View File

@@ -132,8 +132,8 @@ checkallerrors('type',{},'bad argument')
-- xpcall
banner('xpcall')
checkallpass('xpcall', {notanil,nonfunction})
checkallpass('xpcall', {notanil,{function(...)return 'aaa', 'bbb', #{...} end}})
checkallpass('xpcall', {notanil,nonfunction},true)
checkallpass('xpcall', {notanil,{function(...)return 'aaa', 'bbb', #{...} end}},true)
checkallerrors('xpcall',{anylua},'bad argument')