Index: tests/pybin/settings.py
===================================================================
--- tests/pybin/settings.py	(revision adb6b30f3f83b2166bd82dc6c0ab895d1f2d68a7)
+++ tests/pybin/settings.py	(revision 6b9daf17c16f80286e75923fbc4ee46f9dd72542)
@@ -112,4 +112,5 @@
 	global install
 	global timeout
+	global ldpath
 
 	dry_run    = options.dry_run
@@ -120,4 +121,5 @@
 	arch       = Architecture(options.arch)
 	timeout    = Timeouts(options.timeout, options.global_timeout)
+	ldpath     = "LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:%slibcfa/%s-%s/src/.libs\"" % (BUILDDIR, arch, "debug" if options.debug else "nodebug")
 
 
Index: tests/test.py
===================================================================
--- tests/test.py	(revision adb6b30f3f83b2166bd82dc6c0ab895d1f2d68a7)
+++ tests/test.py	(revision 6b9daf17c16f80286e75923fbc4ee46f9dd72542)
@@ -162,5 +162,5 @@
 		if settings.dry_run or fileIsExecutable(exe_file) :
 			# run test
-			retcode, _ = sh("timeout %d %s > %s 2>&1" % (settings.timeout.single, exe_file, out_file), input = in_file)
+			retcode, _ = sh("%s timeout %d %s > %s 2>&1" % (settings.ldpath, settings.timeout.single, exe_file, out_file), input = in_file)
 		else :
 			# simply cat the result into the output
