diff host/tools/testtool/win32/TestTool.cpp @ 82:6736c52df507 ecos-sw-2000-04-14

Merge from eCos master repository on 2000-04-14-13:35:46-BST
author jlarmour
date Tue, 18 Apr 2000 21:51:55 +0000
parents 435cced73e2f
children 74dbf4c3f2e1
line wrap: on
line diff
--- a/host/tools/testtool/win32/TestTool.cpp
+++ b/host/tools/testtool/win32/TestTool.cpp
@@ -71,7 +71,8 @@ CRunTestsApp theApp;
 
 BOOL CRunTestsApp::InitInstance()
 {
-  CeCosTest::Init();
+  CeCosSocket::Init();
+  CeCosTestPlatform::Load();
   CFileName strCSHFile;
   ::GetModuleFileName(::GetModuleHandle(NULL),strCSHFile.GetBuffer(1+MAX_PATH),MAX_PATH);
   strCSHFile.ReleaseBuffer();
@@ -123,7 +124,9 @@ BOOL CRunTestsApp::InitInstance()
 	
     // Since the dialog has been closed, return FALSE so that we exit the
 	//  application, rather than start the application's message pump.
-  CeCosTest::Term();
+  CeCosSocket::Term();
+  CeCosTestPlatform::RemoveAllPlatforms();
+
 	return FALSE;
 }
 
@@ -131,10 +134,10 @@ void CALLBACK CRunTestsApp::InitFunc(CPr
 {
     static bool bFirstTime=true;
     if(bSave){
-        pProp->Save();
+        pProp->SaveToRegistry(HKEY_CURRENT_USER,_T("Software\\Red Hat\\eCos\\RunTests"));
     } else {
         pProp->LoadFromCommandString(GetCommandLine());
-        pProp->Load();
+        pProp->LoadFromRegistry(HKEY_CURRENT_USER,_T("Software\\Red Hat\\eCos\\RunTests"));
     }
     bFirstTime=false;
 }