summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-28 20:18:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-28 20:18:34 +0800
commit21d6c1161052c8fca442b7154224c3795e5953e6 (patch)
tree7b42d37375e816f362d6246e6be4bf2b28229cdb
parenta81ac792c149878dc5126dcf111741c9181d9657 (diff)
downloadlua-language-server-21d6c1161052c8fca442b7154224c3795e5953e6.zip
测试4
-rw-r--r--make/unittest.lua2
-rw-r--r--server/test.lua2
2 files changed, 1 insertions, 3 deletions
diff --git a/make/unittest.lua b/make/unittest.lua
index d2644725..a501d2aa 100644
--- a/make/unittest.lua
+++ b/make/unittest.lua
@@ -14,9 +14,7 @@ local process = assert(sp.spawn {
for line in process.stdout:lines 'l' do
print(line)
- error(line)
end
-error('测试')
process:wait()
local err = process.stderr:read 'a'
if err ~= '' then
diff --git a/server/test.lua b/server/test.lua
index a944c8f0..d6fd9f48 100644
--- a/server/test.lua
+++ b/server/test.lua
@@ -7,7 +7,7 @@ package.cpath = rootPath .. 'bin/?.so'
.. ';' .. rootPath .. 'bin/?.dll'
package.path = rootPath .. 'src/?.lua'
.. ';' .. rootPath .. 'src/?/init.lua'
-
+error '测试'
local fs = require 'bee.filesystem'
local subprocess = require 'bee.subprocess'
ROOT = fs.absolute(fs.path(rootPath))