summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2012-06-08 22:40:20 +0300
committerAntti-Juhani Kaijanaho <ajk@debian.org>2012-06-08 22:46:52 +0300
commit20e6bff973a9d51c3dd5b5a1c67809b4d9001fc4 (patch)
tree74aeff6f09ae740d49852cb7c7826b2de1fbda07
parent3da2c85181849571d62270ddf86306ea5e0d7482 (diff)
downloaddctrl-tools-20e6bff973a9d51c3dd5b5a1c67809b4d9001fc4.tar.gz
tests/0022.*: New test case, for grep-dctrl --ignore-parse-errors
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
-rw-r--r--debian/changelog4
-rw-r--r--tests/0022.err6
-rw-r--r--tests/0022.fails0
-rw-r--r--tests/0022.out2
-rw-r--r--tests/0022.sh8
5 files changed, 19 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index d68030a..3d79907 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,8 +10,10 @@ dctrl-tools (2.23) UNRELEASED; urgency=low
good idea in any case).
* Add -Wextra to non-package builds (and clean up the resulting warnings).
* lib/msg.c (msg_primitive): Write the period before the newline, not after!
+ * tests/0022.{out,err,fails}: New test case, for grep-dctrl
+ --ignore-parse-errors
- -- Antti-Juhani Kaijanaho <ajk@debian.org> Fri, 08 Jun 2012 22:38:22 +0300
+ -- Antti-Juhani Kaijanaho <ajk@debian.org> Fri, 08 Jun 2012 22:39:44 +0300
dctrl-tools (2.22.2) unstable; urgency=low
diff --git a/tests/0022.err b/tests/0022.err
new file mode 100644
index 0000000..fe1cc54
--- /dev/null
+++ b/tests/0022.err
@@ -0,0 +1,6 @@
+../grep-dctrl/grep-dctrl: 0010.in:3: warning: expected a colon.
+../grep-dctrl/grep-dctrl: 0010.in:3: warning: expected a colon.
+../grep-dctrl/grep-dctrl: 0010.in:3: warning: expected a colon.
+../grep-dctrl/grep-dctrl: 0010.in:4: warning: expected a colon.
+../grep-dctrl/grep-dctrl: 0010.in:6: warning: expected a colon.
+../grep-dctrl/grep-dctrl: 0010.in:6: warning: expected a colon.
diff --git a/tests/0022.fails b/tests/0022.fails
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/0022.fails
diff --git a/tests/0022.out b/tests/0022.out
new file mode 100644
index 0000000..68d7973
--- /dev/null
+++ b/tests/0022.out
@@ -0,0 +1,2 @@
+Foo: bar
+
diff --git a/tests/0022.sh b/tests/0022.sh
new file mode 100644
index 0000000..3397817
--- /dev/null
+++ b/tests/0022.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+LC_ALL=C
+export LC_ALL
+
+$GREP_DCTRL --ignore-parse-errors '' 0010.in