Browse Source

Get this unit test working again; this test is somewhat at odds with inferring the executable from the manifest

Don Porter 7 years ago
parent
commit
9a7e6d6fde
1 changed files with 7 additions and 3 deletions
  1. 7 3
      Pal/regression/Process3.c

+ 7 - 3
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;
 }