aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/TestEngine/ExampleTestEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/examples/TestEngine/ExampleTestEngine.cpp')
-rw-r--r--src/test/examples/TestEngine/ExampleTestEngine.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/examples/TestEngine/ExampleTestEngine.cpp b/src/test/examples/TestEngine/ExampleTestEngine.cpp
new file mode 100644
index 00000000..9f051875
--- /dev/null
+++ b/src/test/examples/TestEngine/ExampleTestEngine.cpp
@@ -0,0 +1,22 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3#include "precomp.h"
4
5int __cdecl wmain(int argc, LPWSTR argv[])
6{
7 HRESULT hr = E_INVALIDARG;
8
9 ConsoleInitialize();
10
11 if (argc != 2)
12 {
13 ConsoleWriteError(hr, CONSOLE_COLOR_RED, "Usage: Example.TestEngine.exe BA.dll");
14 }
15 else
16 {
17 hr = RunShutdownEngine(argv[1]);
18 }
19
20 ConsoleUninitialize();
21 return HRESULT_CODE(hr);
22}