Still trying to fix KyoungSoo's bug
[vsys.git] / tests / vsys_conctest.c
index b1a17fa..16fd279 100644 (file)
@@ -11,8 +11,8 @@ int main()
 {
   FILE *fp = NULL, *fp_in = NULL;
   FILE *out_fp = NULL, *diff_fp = NULL;
-  const char* topcmd = "/vsys/vtop.out";
-  const char* top_in_file = "/vsys/vtop.in";
+  const char* topcmd = "fe/test.out";
+  const char* top_in_file = "fe/test.in";
   char buf[4096];
   int fd_in = -1, fd_out;
   int res;
@@ -25,6 +25,7 @@ int main()
     int res;
     int nlines=0;
 
+    //usleep(200);
     printf("(%d)", count);fflush(stdout);
 
     if ((fd_out = open(topcmd, O_RDONLY | O_NONBLOCK)) < 0) {
@@ -32,11 +33,11 @@ int main()
       exit(-1);
     }
 
+//    printf("(opening in file)");
     if ((fd_in = open(top_in_file, O_WRONLY)) < 0) {
       fprintf(stderr, "error opening %s\n", top_in_file);
       exit(-1);
     }
-
     if ((flag = fcntl(fd_out, F_GETFL)) == -1) {
       printf("fcntl get failed\n");
       exit(-1);