]> granicus.if.org Git - ipset/commitdiff
Testsuite compatibility with debugging enabled
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 1 Feb 2011 19:37:42 +0000 (20:37 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 1 Feb 2011 19:37:42 +0000 (20:37 +0100)
The error line checking would fail when debugging is enabled
(and spit out junk lines), fixed.

tests/ipmap.t

index af6e36bb3ce65955cd50f851003f4667105926be..443d40dc51f749aa03e58de1cefe64db02a6e712 100644 (file)
@@ -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