CVE-2016-0771: tests/dns: Remove dependencies on env variables
[Samba.git] / ctdb / tests / eventscripts / 50.samba.monitor.110.sh
blob83a2271f268e6305b92b0a078cb2914bac8d7377
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "testparm fails"
7 setup_samba
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_SYS_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