Unixbench is broken, so we need to patch it up before compiling it.
The existing code terminates the list of varargs to execl with a 0,
which doesn't always work because execl is expecting all of its
arguments to be a char*. On platforms where sizeof(int) < sizeof(char*)
this can result in the vararg "null terminator" not being NULL.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1274 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/unixbench/unixbench.patch b/client/tests/unixbench/unixbench.patch
new file mode 100644
index 0000000..a6b567a
--- /dev/null
+++ b/client/tests/unixbench/unixbench.patch
@@ -0,0 +1,11 @@
+--- src/src/execl.c 1999-07-28 14:46:58.000000000 -0700
++++ newsrc/src/execl.c 2008-02-27 09:23:17.372306000 -0800
+@@ -88,7 +88,7 @@ char *argv[];
+ fprintf(stderr, "%lu loops\n", iter);
+ exit(0);
+ }
+- execl(fullpath, fullpath, "0", dur_str, count_str, start_str, 0);
++ execl(fullpath, fullpath, "0", dur_str, count_str, start_str, (char *)0);
+ printf("Exec failed at iteration %lu\n", iter);
+ perror("Reason");
+ exit(1);