summaryrefslogtreecommitdiff
path: root/tests/rpmquery.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rpmquery.at')
-rw-r--r--tests/rpmquery.at15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rpmquery.at b/tests/rpmquery.at
index 0dc6d78b6..36c62339a 100644
--- a/tests/rpmquery.at
+++ b/tests/rpmquery.at
@@ -849,4 +849,19 @@ runroot rpm \
355 355
],
[])
+AT_CLEANUP
+
+# ------------------------------
+AT_SETUP([incomplete escape sequence for format query])
+AT_KEYWORDS([query])
+AT_CHECK([
+runroot rpm \
+ --queryformat='%{NAME}\n\' \
+ -qp /data/RPMS/foo-1.0-1.noarch.rpm
+],
+[0],
+[],
+[error: incorrect format: escaped char expected after \
+],
+)
AT_CLEANUP \ No newline at end of file