Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: polished the module for initial release.
We took care of various minor styling issues and introduced a sanity.t test suite for the shared lib loading code.
- Loading branch information
1 parent
c914369
commit dc62ea6
Showing
3 changed files
with
67 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# vi:ft= | ||
|
||
use lib '.'; | ||
use t::TestKiller; | ||
|
||
plan tests => 3 * blocks(); | ||
|
||
no_long_string(); | ||
#no_diff(); | ||
|
||
run_tests(); | ||
|
||
__DATA__ | ||
=== TEST 1: failure to load librestysignal.so | ||
--- config | ||
location = /t { | ||
content_by_lua_block { | ||
local cpath = package.cpath | ||
package.cpath = "/foo/?.so;/bar/?.so;" | ||
local ok, perr = pcall(require, "resty.signal") | ||
if not ok then | ||
ngx.say(perr) | ||
end | ||
package.cpath = cpath | ||
} | ||
} | ||
--- response_body | ||
could not load librestysignal.so from the following paths: | ||
/foo/librestysignal.so | ||
/bar/librestysignal.so | ||
--- no_error_log | ||
[error] |