s4:kdc/db-glue: allow principals in form of computer@EXAMPLE.COM
[Samba.git] / source3 / script / tests / test_failure.sh
blob4980fb09201e0a5c4bc10edb0251a176fa805838
1 #!/bin/sh
3 # Blackbox test that should fail one of three subtests.
5 # Copyright (C) 2011 Michael Adam <obnox@samba.org>
7 incdir=`dirname $0`/../../../testprogs/blackbox
8 . $incdir/subunit.sh
10 failed=0
12 test_failure()
14 false
17 test_success()
19 true
22 testit "success" \
23 test_success || \
24 failed=`expr $failed + 1`
26 testit "failure" \
27 test_failure || \
28 failed=`expr $failed + 1`
30 testit "success" \
31 test_success || \
32 failed=`expr $failed + 1`
34 testok $0 $failed