diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/utestclnt.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/utestclnt.lua b/test/utestclnt.lua index eec6adc..01f55e5 100644 --- a/test/utestclnt.lua +++ b/test/utestclnt.lua | |||
| @@ -4,24 +4,24 @@ local socket = require"socket.unix" | |||
| 4 | host = "luasocket" | 4 | host = "luasocket" |
| 5 | 5 | ||
| 6 | function pass(...) | 6 | function pass(...) |
| 7 | local s = string.format(unpack(arg)) | 7 | local s = string.format(...) |
| 8 | io.stderr:write(s, "\n") | 8 | io.stderr:write(s, "\n") |
| 9 | end | 9 | end |
| 10 | 10 | ||
| 11 | function fail(...) | 11 | function fail(...) |
| 12 | local s = string.format(unpack(arg)) | 12 | local s = string.format(...) |
| 13 | io.stderr:write("ERROR: ", s, "!\n") | 13 | io.stderr:write("ERROR: ", s, "!\n") |
| 14 | socket.sleep(3) | 14 | socket.sleep(3) |
| 15 | os.exit() | 15 | os.exit() |
| 16 | end | 16 | end |
| 17 | 17 | ||
| 18 | function warn(...) | 18 | function warn(...) |
| 19 | local s = string.format(unpack(arg)) | 19 | local s = string.format(...) |
| 20 | io.stderr:write("WARNING: ", s, "\n") | 20 | io.stderr:write("WARNING: ", s, "\n") |
| 21 | end | 21 | end |
| 22 | 22 | ||
| 23 | function remote(...) | 23 | function remote(...) |
| 24 | local s = string.format(unpack(arg)) | 24 | local s = string.format(...) |
| 25 | s = string.gsub(s, "\n", ";") | 25 | s = string.gsub(s, "\n", ";") |
| 26 | s = string.gsub(s, "%s+", " ") | 26 | s = string.gsub(s, "%s+", " ") |
| 27 | s = string.gsub(s, "^%s*", "") | 27 | s = string.gsub(s, "^%s*", "") |
