Browse Source

fix unix socket(pipe) test

woonhak 7 years ago
parent
commit
9743bcd433
2 changed files with 3 additions and 1 deletions
  1. 2 0
      LibOS/shim/test/native/manifest.template
  2. 1 1
      LibOS/shim/test/native/unix.c

+ 2 - 0
LibOS/shim/test/native/manifest.template

@@ -27,3 +27,5 @@ sgx.trusted_files.libm = file:$(LIBCDIR)/libm.so.6
 sgx.trusted_files.libpthread = file:$(LIBCDIR)/libpthread.so.0
 sgx.trusted_files.victim = file:exec_victim
 sgx.trusted_children.victim = file:exec_victim.sig
+
+sgx.trusted_files.unix_pipe = file:unix.c

+ 1 - 1
LibOS/shim/test/native/unix.c

@@ -151,7 +151,7 @@ int client(void)
 int main(int argc, char ** argv)
 {
     char fnamebuf[40];
-    strcpy(fnamebuf, argv[0]);
+    strcpy(fnamebuf, "unix");
     strcat(fnamebuf, ".c");
     fname = fnamebuf;