torture-samr: Try breaking the NT hash first, as the LM hash may not be being checked
[Samba.git] / ctdb / tests / eventscripts / 10.interface.takeip.003.sh
blob203cff05be13254a80cd343d7afb5e99e13f815b
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "error - add same IP twice"
7 setup_ctdb
9 public_address=$(ctdb_get_1_public_address)
10 dev="${public_address%% *}"
11 t="${public_address#* }"
12 ip="${t% *}"
13 bits="${t#* }"
15 # This is a bit gross and contrived. The method of quoting the error
16 # message so it makes it to required_result() is horrible. Hopefully
17 # improvements will come.
19 err2="\
20 RTNETLINK answers: File exists
21 Failed to add $ip/$bits on dev $dev"
23 #EVENTSCRIPTS_TESTS_TRACE="sh -x"
24 iterate_test -- $public_address -- 2 "ok_null" \
25 2 'required_result 1 "$err2"'