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.py b/client/tests/unixbench/unixbench.py
index 52485f3..4e0b674 100755
--- a/client/tests/unixbench/unixbench.py
+++ b/client/tests/unixbench/unixbench.py
@@ -10,6 +10,7 @@
 		extract_tarball_to_dir(tarball, self.srcdir)
 		os.chdir(self.srcdir)
 
+		system('patch -p1 < ../unixbench.patch')
 		system('make')
 		
 	def execute(self, iterations = 1, args = ''):