215193356743bc99cbb877803acd911db4453b6d
[obnox/samba/samba-obnox.git] / ctdb / tests / eventscripts / 50.samba.monitor.110.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "testparm fails"
6
7 setup_samba
8
9 export FAKE_TESTPARM_FAIL="yes"
10 required_result 1 <<EOF
11 ERROR: smb.conf cache create failed - testparm failed with:
12 Load smb config files from ${CTDB_ETCDIR}/samba/smb.conf
13 rlimit_max: increasing rlimit_max (2048) to minimum Windows limit (16384)
14 Processing section "[1_existing]"
15 Processing section "[2_existing]"
16 Processing section "[3_existing]"
17 Loaded services file OK.
18 WARNING: 'workgroup' and 'netbios name' must differ.
19 EOF
20 simple_test