summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-02-01 20:37:42 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-02-01 20:37:42 +0100
commitd68997e09448eeca990dbc2c55b02b698a392c8d (patch)
tree1146acb40eb71127e60d7e8b32521ccb24ad8a56 /tests
parentf8f9e25aea2bce144e037286357f9c4dc9f9b8bb (diff)
Testsuite compatibility with debugging enabled
The error line checking would fail when debugging is enabled (and spit out junk lines), fixed.
Diffstat (limited to 'tests')
-rw-r--r--tests/ipmap.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ipmap.t b/tests/ipmap.t
index af6e36b..443d40d 100644
--- a/tests/ipmap.t
+++ b/tests/ipmap.t
@@ -43,7 +43,7 @@
# Range: Restore set and catch error
1 sed 's/2.0.0.131/222.0.0.131/' < ipmap.t.restore | ipset -R
# Range: Check returned error line number
-0 num=`sed 's/.* in line //' < .foo.err | cut -d : -f 1` && test $num -eq 6
+0 num=`grep 'in line' < .foo.err | sed 's/.* in line //' | cut -d : -f 1` && test $num -eq 6
# Range: Destroy set
0 ipset -X test
# Range: Restore set