diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-26 22:59:25 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-26 22:59:25 +0100 |
commit | 36c7d241b6486d1ce3c4dd1c8a1fa42e870c3355 (patch) | |
tree | a81273b38044ee08d181284227063a49d09379ed /tests | |
parent | 8271afcab2f219158ec5d63f6b625cd64dcc98a8 (diff) | |
download | ipset-36c7d241b6486d1ce3c4dd1c8a1fa42e870c3355.tar.gz |
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.t | 2 |
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 |