summaryrefslogtreecommitdiff
path: root/make/unittest.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-28 20:13:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-28 20:13:37 +0800
commita81ac792c149878dc5126dcf111741c9181d9657 (patch)
treef8581caa9524c8923a9e16778da43d2d2c723b8e /make/unittest.lua
parentecb7a8362dbc4270371b732fde40de548ad7d100 (diff)
downloadlua-language-server-a81ac792c149878dc5126dcf111741c9181d9657.zip
测试3
Diffstat (limited to 'make/unittest.lua')
-rw-r--r--make/unittest.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/unittest.lua b/make/unittest.lua
index 1c0daba5..d2644725 100644
--- a/make/unittest.lua
+++ b/make/unittest.lua
@@ -2,8 +2,6 @@ local platform = ...
local fs = require 'bee.filesystem'
local sp = require 'bee.subprocess'
local exe = platform == 'msvc' and ".exe" or ""
-
-error('测试')
local CWD = fs.current_path()
local process = assert(sp.spawn {
@@ -16,7 +14,9 @@ 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