]> granicus.if.org Git - jq/commitdiff
Test main.c fix for #817
authorNicolas Williams <nico@cryptonector.com>
Tue, 11 Aug 2015 22:40:39 +0000 (17:40 -0500)
committerDavid Tolnay <dtolnay@gmail.com>
Thu, 13 Aug 2015 16:18:44 +0000 (09:18 -0700)
tests/shtest

index 70c384dfefc12e2da2991adac39b505a14baada9..6e7690e4826c7a9e69ad1eaaaa393b62897e340d 100755 (executable)
@@ -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