summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 22:59:25 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 22:59:25 +0100
commit36c7d241b6486d1ce3c4dd1c8a1fa42e870c3355 (patch)
treea81273b38044ee08d181284227063a49d09379ed /tests
parent8271afcab2f219158ec5d63f6b625cd64dcc98a8 (diff)
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)
Diffstat (limited to 'tests')
-rw-r--r--tests/ipmap.t2
1 files changed, 2 insertions, 0 deletions
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