Skip to content

Commit 98e5a3f

Browse files
authored
Merge pull request #2516 from jwillemsen/jwi-configtestacetao2
Minimal backport of #2513
2 parents 08ab15f + 67aa653 commit 98e5a3f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ACE/tests/Config_Test.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ test_subkey_path (ACE_Configuration* config)
310310
ACE_Configuration_Section_Key testsection;
311311

312312
if (config->open_section (root,
313-
ACE_TEXT ("Software\\ACE\\test"),
313+
ACE_TEXT ("Software\\ACETEST\\test"),
314314
1,
315315
testsection))
316316
return -26;
@@ -326,7 +326,7 @@ test_subkey_path (ACE_Configuration* config)
326326
return -27;
327327

328328
if (config->remove_section (testsection,
329-
ACE_TEXT ("ACE"),
329+
ACE_TEXT ("ACETEST"),
330330
1))
331331
return -28;
332332

@@ -527,26 +527,26 @@ run_tests (void)
527527

528528
#if defined (ACE_WIN32) && !defined (ACE_LACKS_WIN32_REGISTRY)
529529
{
530-
ACE_Configuration_Win32Registry RegConfig (HKEY_LOCAL_MACHINE);
530+
ACE_Configuration_Win32Registry RegConfig (HKEY_CURRENT_USER);
531531
int result = test_subkey_path (&RegConfig);
532532
if (result)
533533
ACE_ERROR_RETURN ((LM_ERROR,
534-
ACE_TEXT ("Win32Registry test HKEY_LOCAL_MACHINE")
534+
ACE_TEXT ("Win32Registry test HKEY_CURRENT_USER")
535535
ACE_TEXT (" failed (%d)\n"), result),
536536
-1);
537537
}
538538
// test win32 registry implementation.
539539
HKEY root =
540-
ACE_Configuration_Win32Registry::resolve_key (HKEY_LOCAL_MACHINE,
541-
ACE_TEXT ("Software\\ACE\\test"));
540+
ACE_Configuration_Win32Registry::resolve_key (HKEY_CURRENT_USER,
541+
ACE_TEXT ("Software\\ACETEST\\test"));
542542
if (!root)
543543
ACE_ERROR_RETURN ((LM_ERROR,
544544
ACE_TEXT ("resolve_key is broken\n")), -2);
545545

546546
// test resolving of forward slashes
547547
HKEY root_fs =
548-
ACE_Configuration_Win32Registry::resolve_key (HKEY_LOCAL_MACHINE,
549-
ACE_TEXT ("Software/ACE/test"), 0);
548+
ACE_Configuration_Win32Registry::resolve_key (HKEY_CURRENT_USER,
549+
ACE_TEXT ("Software/ACETEST/test"), 0);
550550
if (!root_fs)
551551
ACE_ERROR_RETURN ((LM_ERROR,
552552
ACE_TEXT ("resolve_key resolving slashes is broken\n")),

0 commit comments

Comments
 (0)