#! /bin/bash run_test ./drive_sql "SELECT * FROM xpath('/abc[', '')" check_error_output "invalid xpath not reported?" <')" check_output "got unexpected results" <ghi')" check_output "got unexpected results" <ghi Column node_path: /abc/def[2] Column node_attr: {"a":"b"} Column node_text: ghi EOF run_test ./drive_sql "SELECT * FROM xpath('/abc/def', 'Hello >')" check_output "got unexpected results" <Hello > Column node_path: /abc/def Column node_attr: {} Column node_text: Hello > EOF