Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Trying to fix the random set-up
authorFabien Chaix <chaix@ics.forth.gr>
Fri, 26 Feb 2016 20:18:17 +0000 (22:18 +0200)
committerFabien Chaix <chaix@ics.forth.gr>
Fri, 26 Feb 2016 20:18:17 +0000 (22:18 +0200)
teshsuite/surf/maxmin_bench/maxmin_bench.c
teshsuite/surf/maxmin_bench/maxmin_bench_small.tesh [new file with mode: 0644]

index fde6ccf..99f393e 100644 (file)
@@ -141,9 +141,12 @@ int main(int argc, char **argv)
     return -2;
   }
 
+  
   //How many times?
   testcount=atoi(argv[2]);
   
+  srand(testcount);
+
   //Show me everything (debug or performance)!
   mode=0;
   if(argc>=4 && strcmp(argv[3],"test")==0)
diff --git a/teshsuite/surf/maxmin_bench/maxmin_bench_small.tesh b/teshsuite/surf/maxmin_bench/maxmin_bench_small.tesh
new file mode 100644 (file)
index 0000000..0b7191c
--- /dev/null
@@ -0,0 +1,5 @@
+#! ./tesh
+
+! expect return 0
+# ! output display
+$ ./maxmin_bench small 1 test