Skip to content

Commit

Permalink
Disable LSan for all PDO_Firebird tests
Browse files Browse the repository at this point in the history
The tests leak memory, likely due to a slightly unclean shutdown of
libfbclient.  To avoid failing CI, we disable LSan for all the tests.

Closes GH-6966.
  • Loading branch information
cmb69 committed May 13, 2021
1 parent 23a3bbb commit f6c15e2
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_47415.phpt
Expand Up @@ -2,6 +2,8 @@
Bug #47415 PDO_Firebird segfaults when passing lowercased column name to bindColumn()
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require 'testdb.inc';
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_48877.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: bug 48877 The "bindValue" and "bindParam" do not work for PDO Firebird if we use named parameters (:parameter).
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_53280.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: bug 53280 segfaults if query column count is less than param count
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_62024.phpt
Expand Up @@ -2,6 +2,8 @@
Bug #62024 Cannot insert second row with null using parametrized query (Firebird PDO)
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_64037.phpt
Expand Up @@ -2,6 +2,8 @@
Bug #64037 Firebird return wrong value for numeric field
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_72583.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: Feature 72583 Fetch integers as php integers not as strings
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require 'testdb.inc';
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_72931.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require 'testdb.inc';
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_73087.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: bug 73087 segfault binding blob parameter
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require 'testdb.inc';
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_74462.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require 'testdb.inc';
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_76488.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: Bug #76488 Memory leak when fetching a BLOB field
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require 'testdb.inc';
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_77863.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: Bug #76488 PDO Firebird does not support boolean datatype in input parameters
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/bug_aaa.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: cursor should not be marked as opened on singleton statements
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require 'testdb.inc';
Expand Down
1 change: 1 addition & 0 deletions ext/pdo_firebird/tests/common.phpt
Expand Up @@ -7,6 +7,7 @@ if (!extension_loaded('pdo_firebird')) print 'skip'; ?>
# magic auto-configuration

$config = array(
'ENV' => ['LSAN_OPTIONS' => 'detect_leaks=0'],
'TESTS' => 'ext/pdo/tests'
);

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/connect.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: connect/disconnect
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require("testdb.inc");
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/ddl.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: DDL/transactions
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php

Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/dialect_1.phpt
Expand Up @@ -6,6 +6,8 @@ if (strpos(getenv('PDO_FIREBIRD_TEST_DSN'), 'dialect=1')===false) {
die('skip: PDO_FIREBIRD_TEST_DSN must contain a string "dialect=1"');
}
?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require("testdb.inc");
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/execute.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: prepare/execute/binding
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require("testdb.inc");
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/payload_test.phpt
Expand Up @@ -5,6 +5,8 @@ FB payload server satisfies connection attempt
if (!extension_loaded('pdo_firebird')) die("skip pdo_firebird extension not available");
if (!extension_loaded('sockets')) die("skip sockets extension not available");
?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php
require_once "payload_server.inc";
Expand Down
2 changes: 2 additions & 0 deletions ext/pdo_firebird/tests/rowCount.phpt
Expand Up @@ -2,6 +2,8 @@
PDO_Firebird: rowCount
--SKIPIF--
<?php require('skipif.inc'); ?>
--ENV--
LSAN_OPTIONS=detect_leaks=0
--FILE--
<?php

Expand Down

0 comments on commit f6c15e2

Please sign in to comment.