diff options
| -rw-r--r-- | tests/plugins/create/test.lua | 8 | ||||
| -rw-r--r-- | xmake/core/project/template.lua | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/plugins/create/test.lua b/tests/plugins/create/test.lua new file mode 100644 index 000000000..b7e68db81 --- /dev/null +++ b/tests/plugins/create/test.lua @@ -0,0 +1,8 @@ +function main () + os.exec("xmake create -P $(tmpdir)/test") + os.exec("xmake -P $(tmpdir)/test") + os.exec("xmake create -l c++ -P $(tmpdir)/test_cpp") + os.exec("xmake -P $(tmpdir)/test_cpp") + os.exec("xmake create -l c++ -t 3 -P $(tmpdir)/test_cpp2") + os.exec("xmake -P $(tmpdir)/test_cpp2") +end diff --git a/xmake/core/project/template.lua b/xmake/core/project/template.lua index 6c61931f9..a306bf622 100644 --- a/xmake/core/project/template.lua +++ b/xmake/core/project/template.lua @@ -259,7 +259,7 @@ function template.create(language, templateid, targetname) if module.create then local ok, errors = sandbox.load(module.create) if not ok then - utils.errors(errors) + utils.error(errors) return false end end |
