From: Martin Schwenke Date: Mon, 20 Aug 2018 20:55:33 +0000 (+1000) Subject: ctdb-tests: Add an extra conf loading test case X-Git-Tag: tdb-1.3.17~2017 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55893bf8d2cc7e01b3a93d8e1fde16408244cb65;p=thirdparty%2Fsamba.git ctdb-tests: Add an extra conf loading test case This shows that config file loading continues in spite of unknown keys if ignore_unknown is true. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/cunit/config_test_001.sh b/ctdb/tests/cunit/config_test_001.sh index c0a6e89aeb2..bf1e589c318 100755 --- a/ctdb/tests/cunit/config_test_001.sh +++ b/ctdb/tests/cunit/config_test_001.sh @@ -90,3 +90,23 @@ required_result 2 < "key" not defined EOF unit_test ctdb-config get section key + +# Confirm that an unknown key doesn't stop the rest of the file from +# loading +cat > "$conffile" <