diff crashRun.c @ 971:8da09834526d

* Valgrind support is now part of dstress.c instead of crashRun.c * fixed parallel build of test cases with multiple object files
author thomask
date Thu, 20 Apr 2006 08:50:01 +0000
parents 752d78bbb899
children 37d80331f28f
line wrap: on
line diff
--- a/crashRun.c	Thu Apr 20 06:04:53 2006 +0000
+++ b/crashRun.c	Thu Apr 20 08:50:01 2006 +0000
@@ -34,7 +34,6 @@
 
 #undef WAIT_GUARD
 #define WAIT_GUARD 3
-#define VALGRIND "valgrind -q --suppressions=valgrind.suppress"
 
 /* time-out in seconds
  * Posix: cpu time(timeOut) and system time(timeOut * WAIT_GUARD)
@@ -224,14 +223,10 @@
 
 	for(i=0; i<argc; i++){
 		cmdLen+=strlen(argv[i]);
-		cmdLen+=3;
+		cmdLen+=1;
 	}
 
-#ifdef USE_VALGRIND
-	cmdLen += strlen(VALGRIND);
-#endif
-
-	cmd = malloc(cmdLen);
+	cmd = malloc(++cmdLen);
 	if(!cmd){
 		fprintf(stderr, "failed to allocate enough memory");
 		exit(EXIT_FAILURE);
@@ -240,14 +235,8 @@
 	*cmd = '\x00';
 	tmp = cmd;
 
-#ifdef USE_VALGRIND
-	tmpLen = snprintf(tmp, cmdLen, "%s ", VALGRIND);
-	tmp += tmpLen;
-	cmdLen -= tmpLen;
-#endif
-
 	for(i=0; i<argc; i++){
-		tmpLen = snprintf(tmp, cmdLen, "\"%s\" ", argv[i]);
+		tmpLen = snprintf(tmp, cmdLen, "%s ", argv[i]);
 		tmp += tmpLen;
 		cmdLen -= tmpLen;
 	}