cli: print error causes in all error paths
[babeltrace.git] / tests / cli / query / test_query
index 1be9fa24287218249173c7772c1f6ea6928a8a33..803644ba462a942e6a7312c4f853d5c6788ea1e5 100755 (executable)
@@ -24,7 +24,7 @@ fi
 # shellcheck source=../../utils/utils.sh
 SH_TAP=1 source "$UTILSSH"
 
-NUM_TESTS=11
+NUM_TESTS=15
 
 plan_tests $NUM_TESTS
 
@@ -92,6 +92,9 @@ expect_failure "ValueError: catastrophic failure" \
 expect_failure 'Cannot find component class: plugin-name="query", comp-cls-name="NonExistentSource", comp-cls-type=1' \
        'src.query.NonExistentSource' 'the-object' '-p' 'a=2'
 
+# Wrong parameter syntax.
+expect_failure "Invalid format for --params option's argument:" \
+       'src.query.SourceWithQueryThatPrintsParams' 'please-fail' '-p' 'a=3,'
 
 rm -f "$stdout_expected_file"
 rm -f "$stdout_file"
This page took 0.026861 seconds and 4 git commands to generate.