summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource3/script/tests/test_net_registry_check.sh30
1 files changed, 15 insertions, 15 deletions
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 || \