Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2022-10-09 00:10:11 +0300
committerMichael Grunder <michael.grunder@gmail.com>2022-10-10 02:15:02 +0300
commit46e64277afccff11b7c616eb86170eaa02d8cb14 (patch)
tree11e37bf2f1b6a329c3172c0ee1a82ef2d4137af8
parent114d79d15bd21264127e1a8c73e3d7e541fbaac7 (diff)
Suppress a valgrind false positive
-rw-r--r--.github/workflows/ci.yml8
-rw-r--r--tests/vg.supp5
2 files changed, 9 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 51cb7651..895f6295 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -71,10 +71,10 @@ jobs:
- name: Run tests using valgrind
continue-on-error: true
run: |
- valgrind --error-exitcode=1 php tests/TestRedis.php --class Redis --user phpredis --auth phpredis
- valgrind --error-exitcode=1 php tests/TestRedis.php --class RedisArray --user phpredis --auth phpredis
- valgrind --error-exitcode=1 php tests/TestRedis.php --class RedisCluster --user phpredis --auth phpredis
- valgrind --error-exitcode=1 php tests/TestRedis.php --class RedisSentinel --auth phpredis
+ valgrind --suppressions=tests/vg.supp --error-exitcode=1 php tests/TestRedis.php --class Redis --user phpredis --auth phpredis
+ valgrind --suppressions=tests/vg.supp --error-exitcode=1 php tests/TestRedis.php --class RedisArray --user phpredis --auth phpredis
+ valgrind --suppressions=tests/vg.supp --error-exitcode=1 php tests/TestRedis.php --class RedisCluster --user phpredis --auth phpredis
+ valgrind --suppressions=tests/vg.supp --error-exitcode=1 php tests/TestRedis.php --class RedisSentinel --auth phpredis
env:
TEST_PHP_ARGS: -e
USE_ZEND_ALLOC: 0
diff --git a/tests/vg.supp b/tests/vg.supp
new file mode 100644
index 00000000..21d68c02
--- /dev/null
+++ b/tests/vg.supp
@@ -0,0 +1,5 @@
+{
+ String_Equality_Intentionally_Reads_Uninit_Memory
+ Memcheck:Cond
+ fun:zend_string_equal_val
+}