1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | /*============================================================= |
6 | ** |
7 | ** Source: helper.c |
8 | ** |
9 | ** Purpose: Intended to be the child process of a debugger. Calls |
10 | ** OutputDebugStringA once with a normal string, once with an empty |
11 | ** string |
12 | ** |
13 | ** |
14 | **============================================================*/ |
15 | |
16 | #include <palsuite.h> |
17 | |
18 | int __cdecl main(int argc, char *argv[]) |
19 | { |
20 | if(0 != (PAL_Initialize(argc, argv))) |
21 | { |
22 | return FAIL; |
23 | } |
24 | |
25 | OutputDebugStringA("Foo!\n" ); |
26 | |
27 | OutputDebugStringA("" ); |
28 | |
29 | /* give a chance to the debugger process to read the debug string before |
30 | exiting */ |
31 | Sleep(1000); |
32 | |
33 | PAL_Terminate(); |
34 | return PASS; |
35 | } |
36 | |