[pygobject] tests: add our own valgrind suppression file
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: add our own valgrind suppression file
- Date: Tue, 17 Apr 2018 13:46:28 +0000 (UTC)
commit c48f60a5d9576736d86d1ef381c3e18ce7bab9ea
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Apr 17 15:35:44 2018 +0200
tests: add our own valgrind suppression file
Contains the two condition errors which happen with Python 3.6.5 at
interpreter startup.
MANIFEST.in | 2 +-
setup.py | 2 ++
tests/valgrind.supp | 39 +++++++++++++++++++++++++++++++++++++++
3 files changed, 42 insertions(+), 1 deletion(-)
---
diff --git a/MANIFEST.in b/MANIFEST.in
index 4cee2980..b0770549 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -8,6 +8,6 @@ include README.rst
include .gitlab-ci.yml
recursive-include examples *.py *.png *.css *.ui *.gif *.gresource *.jpg *.xml
recursive-include gi *.h
-recursive-include tests *.py *.c *.h *.xml
+recursive-include tests *.py *.c *.h *.xml *.supp
recursive-include docs *.rst *.svg LICENSE *.ico *.png *.css *.py *.dia Makefile
recursive-include .gitlab-ci *.sh *.rst *.py Dockerfile*
diff --git a/setup.py b/setup.py
index 7da106ba..0326569f 100755
--- a/setup.py
+++ b/setup.py
@@ -651,6 +651,8 @@ def get_suppression_files():
files = []
for prefix in prefixes:
files.extend(get_suppression_files_for_prefix(prefix))
+
+ files.append(os.path.join(get_script_dir(), "tests", "valgrind.supp"))
return sorted(set(files))
diff --git a/tests/valgrind.supp b/tests/valgrind.supp
new file mode 100644
index 00000000..cf067b26
--- /dev/null
+++ b/tests/valgrind.supp
@@ -0,0 +1,39 @@
+# https://bugzilla.redhat.com/show_bug.cgi?id=1538073
+
+{
+ <py36-start1>
+ Memcheck:Cond
+ fun:__wcsnlen_sse4_1
+ fun:wcsrtombs
+ fun:wcstombs
+ fun:wcstombs
+ fun:encode_current_locale
+ fun:encode_locale
+ fun:Py_EncodeLocale
+ fun:_Py_wreadlink
+ fun:calculate_path
+ fun:Py_GetProgramFullPath
+ fun:_PySys_Init
+ fun:_Py_InitializeEx_Private.part.8
+ fun:Py_Main
+ fun:main
+}
+
+{
+ <py36-start2>
+ Memcheck:Cond
+ fun:__wcsnlen_sse4_1
+ fun:wcsrtombs
+ fun:wcstombs
+ fun:wcstombs
+ fun:encode_current_locale
+ fun:encode_locale
+ fun:Py_EncodeLocale
+ fun:_Py_wreadlink
+ fun:calculate_path
+ fun:Py_GetProgramFullPath
+ fun:_PySys_Init
+ fun:_Py_InitializeEx_Private.part.8
+ fun:Py_Main
+ fun:main
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]