From b119853aef1bd069047685cff4fb70a6c976db2e Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 11 Aug 2015 17:40:39 -0500 Subject: [PATCH] Test main.c fix for #817 --- tests/shtest | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/shtest b/tests/shtest index 70c384df..6e7690e4 100755 --- a/tests/shtest +++ b/tests/shtest @@ -190,4 +190,16 @@ if [ `HOME="$mods" $VALGRIND $Q $JQ --debug-dump-disasm -n fg | grep '^[a-z]' | exit 1 fi +cd "$JQBASEDIR" # so that relative library paths are guaranteed correct +if ! $VALGRIND $Q $JQ -L ./tests/modules -ne 'import "test_bind_order" as check; check::check==true'; then + echo "Issue #817 regression?" 1>&2 + exit 1 +fi + +cd "$JQBASEDIR" +if ! $VALGRIND $Q $JQ -L tests/modules -ne 'import "test_bind_order" as check; check::check==true'; then + echo "Issue #817 regression?" 1>&2 + exit 1 +fi + exit 0