aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/TestEngine/ShutdownEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/examples/TestEngine/ShutdownEngine.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/examples/TestEngine/ShutdownEngine.cpp b/src/test/examples/TestEngine/ShutdownEngine.cpp
index 69321d91..912d36ba 100644
--- a/src/test/examples/TestEngine/ShutdownEngine.cpp
+++ b/src/test/examples/TestEngine/ShutdownEngine.cpp
@@ -3,6 +3,7 @@
3#include "precomp.h" 3#include "precomp.h"
4 4
5HRESULT RunShutdownEngine( 5HRESULT RunShutdownEngine(
6 __in LPCWSTR wzBundleFilePath,
6 __in LPCWSTR wzBAFilePath 7 __in LPCWSTR wzBAFilePath
7 ) 8 )
8{ 9{
@@ -12,12 +13,17 @@ HRESULT RunShutdownEngine(
12 pTestEngine = new TestEngine(); 13 pTestEngine = new TestEngine();
13 ConsoleExitOnNull(pTestEngine, hr, E_OUTOFMEMORY, CONSOLE_COLOR_RED, "Failed to create new test engine."); 14 ConsoleExitOnNull(pTestEngine, hr, E_OUTOFMEMORY, CONSOLE_COLOR_RED, "Failed to create new test engine.");
14 15
15 hr = pTestEngine->LoadBA(wzBAFilePath); 16 hr = pTestEngine->LoadBA(wzBundleFilePath, wzBAFilePath);
16 ConsoleExitOnFailure(hr, CONSOLE_COLOR_RED, "Failed to load BA."); 17 ConsoleExitOnFailure(hr, CONSOLE_COLOR_RED, "Failed to load BA.");
17 18
19 hr = pTestEngine->SendStartupEvent();
20 ConsoleExitOnFailure(hr, CONSOLE_COLOR_RED, "BA returned failure for OnStartup.");
21
18 hr = pTestEngine->SendShutdownEvent(BOOTSTRAPPER_SHUTDOWN_ACTION_RELOAD_BOOTSTRAPPER); 22 hr = pTestEngine->SendShutdownEvent(BOOTSTRAPPER_SHUTDOWN_ACTION_RELOAD_BOOTSTRAPPER);
19 ConsoleExitOnFailure(hr, CONSOLE_COLOR_RED, "BA returned failure for OnShutdown."); 23 ConsoleExitOnFailure(hr, CONSOLE_COLOR_RED, "BA returned failure for OnShutdown.");
20 24
25 pTestEngine->UnloadBA();
26
21LExit: 27LExit:
22 return hr; 28 return hr;
23} 29}