Procházet zdrojové kódy

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

Don Porter před 8 roky
rodič
revize
9a7e6d6fde
1 změnil soubory, kde provedl 7 přidání a 3 odebrání
  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;
 }