From 9a7e6d6fde2d4c3692eb0d006af044c8b32cd9ff Mon Sep 17 00:00:00 2001 From: Don Porter Date: Tue, 21 Mar 2017 22:52:38 -0400 Subject: [PATCH] Get this unit test working again; this test is somewhat at odds with inferring the executable from the manifest --- Pal/regression/Process3.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Pal/regression/Process3.c b/Pal/regression/Process3.c index 6658b64d..46140e91 100644 --- a/Pal/regression/Process3.c +++ b/Pal/regression/Process3.c @@ -8,10 +8,14 @@ int main (int argc, char ** argv, char ** envp) { PAL_STR args[1] = { 0 }; - PAL_HANDLE child = DkProcessCreate(NULL, 0, args); - if (child) - pal_printf("Create Process without Executable OK\n"); + // Hack to differentiate parent from child + if (argc == 1) { + PAL_HANDLE child = DkProcessCreate(NULL, 0, args); + + if (child) + pal_printf("Create Process without Executable OK\n"); + } return 0; }