From f5f119f51a0241f8bbb1f8710fb37119b375539b Mon Sep 17 00:00:00 2001 From: osch Date: Tue, 4 Sep 2018 21:33:12 +0200 Subject: avoid NULL as parameter to fputs() --- test/test_error.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test_error.lua (limited to 'test') diff --git a/test/test_error.lua b/test/test_error.lua new file mode 100644 index 0000000..1407ea8 --- /dev/null +++ b/test/test_error.lua @@ -0,0 +1,17 @@ +local llthreads = require"llthreads" +local utils = require "utils" + +local include = utils.thread_init .. [[ +local llthreads = require"llthreads" +]] + +local thread = llthreads.new(include .. [[ + error({}) +]]) + +thread:start() +local ok, err = thread:join() +print(ok, err) +assert(not ok) +print("Done!") + -- cgit v1.2.3-55-g6feb