瀏覽代碼

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

Don Porter 8 年之前
父節點
當前提交
9a7e6d6fde
共有 1 個文件被更改,包括 7 次插入3 次删除
  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;
 }