summaryrefslogtreecommitdiff
path: root/tools/build/v2/test/engine/builtin_w32_getregnames.jam
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/v2/test/engine/builtin_w32_getregnames.jam')
-rw-r--r--tools/build/v2/test/engine/builtin_w32_getregnames.jam17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/build/v2/test/engine/builtin_w32_getregnames.jam b/tools/build/v2/test/engine/builtin_w32_getregnames.jam
new file mode 100644
index 0000000000..1082f4ad72
--- /dev/null
+++ b/tools/build/v2/test/engine/builtin_w32_getregnames.jam
@@ -0,0 +1,17 @@
+#~ Copyright 2006 Rene Rivera.
+#~ Distributed under the Boost Software License, Version 1.0.
+#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+ECHO --- Testing W32_GETREGNAMES builtin... ;
+
+if $(NT)
+{
+ assert "Beep" "ExtendedSounds"
+ : (==) : [ W32_GETREGNAMES "HKEY_CURRENT_USER\\Control Panel\\Sound" : values ] ;
+ assert "Beep" "ExtendedSounds"
+ : (==) : [ W32_GETREGNAMES "HKCU\\Control Panel\\Sound" : values ] ;
+ assert "Control" "Enum" "Hardware Profiles" "Services"
+ : (==) : [ W32_GETREGNAMES "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet" : subkeys ] ;
+ assert "Control" "Enum" "Hardware Profiles" "Services"
+ : (==) : [ W32_GETREGNAMES "HKLM\\SYSTEM\\CurrentControlSet" : subkeys ] ;
+}