From 36c7d241b6486d1ce3c4dd1c8a1fa42e870c3355 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 26 Jan 2011 22:59:25 +0100 Subject: Constified attribute cannot be written Attribute is const so a little bit more work is needed to return the error line number. A test is also added in order to check the functionality. (Patrick McHardy's review) --- tests/ipmap.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/ipmap.t b/tests/ipmap.t index f6dd367..af6e36b 100644 --- a/tests/ipmap.t +++ b/tests/ipmap.t @@ -42,6 +42,8 @@ 0 ipset -X test # 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 # Range: Destroy set 0 ipset -X test # Range: Restore set -- cgit v1.2.3