From d1aeb2d1c3bfb87e9ab4079535867b40fb722fde Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Mon, 25 Jun 2012 20:28:22 +0200 Subject: s3:test_net_registry_check: eliminate "local" keyword in shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit prefer to use function syntax with (...) to make variables local Autobuild-User(master): Björn Jacke Autobuild-Date(master): Tue Jun 26 00:32:11 CEST 2012 on sn-devel-104 --- source3/script/tests/test_net_registry_check.sh | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'source3/script/tests') diff --git a/source3/script/tests/test_net_registry_check.sh b/source3/script/tests/test_net_registry_check.sh index 627f67c55a..ca8da76ffc 100755 --- a/source3/script/tests/test_net_registry_check.sh +++ b/source3/script/tests/test_net_registry_check.sh @@ -69,8 +69,8 @@ regchecknrepair() } test_simple() -{ - local ERRSTR="" +( + ERRSTR="" cp $REGORIG $REG regcheck @@ -78,7 +78,7 @@ test_simple() echo $ERRSTR return 1 } -} +) test_damage() { @@ -86,36 +86,36 @@ test_damage() } test_duplicate() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM/SOFTWARE' hex '02000000534F4654574152450053595354454D00' regchecknrepair "Duplicate subkeylist" 1 -} +) test_slashes() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM/SOFTWARE' hex '02000000534F4654574152450053595354454D00' regchecknrepair "Unnormal key:" 1 -} +) test_uppercase() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM\Software' hex '02000000534F4654574152450053595354454D00' regchecknrepair "Unnormal key:" 1 -} +) test_strangeletters() -{ - local ERRSTR="" +( + ERRSTR="" $DBWRAP_TOOL $REG store 'HKLM\SOFTWARE' hex '02000000534F4654574FABFABFABFAB354454D00' regchecknrepair "Conversion error: Incomplete multibyte sequence" 1 -} +) testit "simple" \ test_simple || \ -- cgit