summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2010-08-28 20:23:04 +0300
committerAntti-Juhani Kaijanaho <ajk@debian.org>2010-08-28 20:23:04 +0300
commit808de4efa746be07aed56cb0f2bcab6a2c12f19f (patch)
tree838de8b7c37c01d92bd010ff961171b76c316f35 /tests
parent710b0a4e092611343e008653d7f9dc2a35592e00 (diff)
downloaddctrl-tools-808de4efa746be07aed56cb0f2bcab6a2c12f19f.tar.gz
lib/paragraph.c (para_parse_next): Fix line counting.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/0010.err2
-rw-r--r--tests/0010.fails0
-rw-r--r--tests/0010.in6
-rw-r--r--tests/0010.sh8
-rw-r--r--tests/0011.err2
-rw-r--r--tests/0011.fails0
-rw-r--r--tests/0011.in7
-rw-r--r--tests/0011.sh8
8 files changed, 33 insertions, 0 deletions
diff --git a/tests/0010.err b/tests/0010.err
new file mode 100644
index 0000000..4b9f606
--- /dev/null
+++ b/tests/0010.err
@@ -0,0 +1,2 @@
+../grep-dctrl/grep-dctrl: -:3: expected a colon
+. \ No newline at end of file
diff --git a/tests/0010.fails b/tests/0010.fails
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/0010.fails
diff --git a/tests/0010.in b/tests/0010.in
new file mode 100644
index 0000000..8f2920d
--- /dev/null
+++ b/tests/0010.in
@@ -0,0 +1,6 @@
+Foo: bar
+
+bar
+baz
+
+xyzzy
diff --git a/tests/0010.sh b/tests/0010.sh
new file mode 100644
index 0000000..1fed9f1
--- /dev/null
+++ b/tests/0010.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+LC_ALL=C
+export LC_ALL
+
+$GREP_DCTRL ''
diff --git a/tests/0011.err b/tests/0011.err
new file mode 100644
index 0000000..5200d77
--- /dev/null
+++ b/tests/0011.err
@@ -0,0 +1,2 @@
+../grep-dctrl/grep-dctrl: -:5: expected a colon
+. \ No newline at end of file
diff --git a/tests/0011.fails b/tests/0011.fails
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/0011.fails
diff --git a/tests/0011.in b/tests/0011.in
new file mode 100644
index 0000000..fe4ab13
--- /dev/null
+++ b/tests/0011.in
@@ -0,0 +1,7 @@
+Foo: bar
+
+Foo: bar
+
+error
+
+Whatever: here
diff --git a/tests/0011.sh b/tests/0011.sh
new file mode 100644
index 0000000..1fed9f1
--- /dev/null
+++ b/tests/0011.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+LC_ALL=C
+export LC_ALL
+
+$GREP_DCTRL ''