nextpart ns2/named.run >/dev/null
+# Test that different case isn't interpreted as a new label.
+n=$((n + 1))
+echo_i "changing the case of the label of domain dom4.example. in catalog2 zone ($n)"
+ret=0
+$NSUPDATE -d <<END >>nsupdate.out.test$n 2>&1 || ret=1
+ server 10.53.0.3 ${PORT}
+ update delete dom4-renamed-label.zones.catalog2.example. 3600 IN PTR dom4.example.
+ update add DOM4-RENAMED-LABEL.zones.catalog2.example. 3600 IN PTR dom4.example.
+ send
+END
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
+n=$((n + 1))
+echo_i "waiting for secondary to sync up, and checking that the zone has not been reset ($n)"
+ret=0
+wait_for_message ns2/named.run "catz: catalog2.example: reload done: success" || ret=1
+_wait_for_message ns2/named.run "catz: zone 'dom4.example' unique label has changed, reset state" && ret=1
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
+nextpart ns2/named.run >/dev/null
+
n=$((n + 1))
echo_i "adding domain dom2.example. to catalog2 zone to test change of ownership ($n)"
ret=0