com php-src: Use --vex-iropt-precise-memory-exns=yes for valgrind < 3.8.0: run-tests.php
| From: | Bob Weinand | Date: | Tue, 10 Nov 2015 08:27:49 +0000 |
| Subject: | com php-src: Use --vex-iropt-precise-memory-exns=yes for valgrind < 3.8.0: run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89727@lists.php.net to get a copy of this message | ||
Commit: ccf8b54b89afdf380a2219fab0ac73d199faa54b
Author: Bob Weinand <bobwei9@hotmail.com> Tue, 10 Nov 2015 09:27:32 +0100
Parents: 3cb3979de302626af8d7bd24472ba5798693ef70
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ccf8b54b89afdf380a2219fab0ac73d199faa54b
Log:
Use --vex-iropt-precise-memory-exns=yes for valgrind < 3.8.0
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index f3d4a27..a607f1c 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1877,11 +1877,13 @@ TEST $file
$env['ZEND_DONT_UNLOAD_MODULES'] = 1;
/* --vex-iropt-register-updates=allregs-at-mem-access is necessary for phpdbg watchpoint tests */
- if (version_compare($valgrind_version, '3.3.0', '>=')) {
+ if (version_compare($valgrind_version, '3.8.0', '>=')) {
/* valgrind 3.3.0+ doesn't have --log-file-exactly option */
$cmd = "valgrind -q --tool=memcheck --trace-children=yes
--vex-iropt-register-updates=allregs-at-mem-access --log-file=$memcheck_filename $cmd";
+ } elseif (version_compare($valgrind_version, '3.3.0', '>=')) {
+ $cmd = "valgrind -q --tool=memcheck --trace-children=yes
--vex-iropt-precise-memory-exns=yes --log-file=$memcheck_filename $cmd";
} else {
- $cmd = "valgrind -q --tool=memcheck --trace-children=yes
--vex-iropt-register-updates=allregs-at-mem-access --log-file-exactly=$memcheck_filename $cmd";
+ $cmd = "valgrind -q --tool=memcheck --trace-children=yes
--vex-iropt-precise-memory-exns=yes --log-file-exactly=$memcheck_filename $cmd";
}
} else {