[Forensics-changes] [libbfio] 01/04: Disable memory tests on some architectures as suggested by upstream author (Closes: #852643)

Hilko Bengen bengen at moszumanska.debian.org
Mon Feb 6 22:40:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libbfio.

commit 20332ab920668e6dddc0f4ee33cf2f9f4136bae5
Author: Hilko Bengen <bengen at debian.org>
Date:   Sun Feb 5 13:39:45 2017 +0100

    Disable memory tests on some architectures as suggested by upstream author (Closes: #852643)
---
 ...e-HAVE_BFIO_TEST_MEMORY-on-some-architect.patch | 30 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/0002-Don-t-define-HAVE_BFIO_TEST_MEMORY-on-some-architect.patch b/debian/patches/0002-Don-t-define-HAVE_BFIO_TEST_MEMORY-on-some-architect.patch
new file mode 100644
index 0000000..4203dba
--- /dev/null
+++ b/debian/patches/0002-Don-t-define-HAVE_BFIO_TEST_MEMORY-on-some-architect.patch
@@ -0,0 +1,30 @@
+From: Hilko Bengen <bengen at debian.org>
+Date: Sun, 5 Feb 2017 13:38:08 +0100
+Subject: Don't define HAVE_BFIO_TEST_MEMORY on some architectures
+
+---
+ tests/bfio_test_memory.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tests/bfio_test_memory.h b/tests/bfio_test_memory.h
+index 9d7d797..f5d0069 100644
+--- a/tests/bfio_test_memory.h
++++ b/tests/bfio_test_memory.h
+@@ -30,6 +30,8 @@ extern "C" {
+ 
+ #if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) && !defined( __clang__ )
+ 
++#if !defined( __ARMEL__ ) && !defined( __MIPSEL__ ) && !defined( __MIPSEB__ ) && !defined( __HPPA__ ) && !defined( __SPARC__ )
++
+ #define HAVE_BFIO_TEST_MEMORY		1
+ 
+ extern int bfio_test_malloc_attempts_before_fail;
+@@ -40,6 +42,8 @@ extern int bfio_test_memset_attempts_before_fail;
+ 
+ extern int bfio_test_realloc_attempts_before_fail;
+ 
++#endif /* !defined( __ARMEL__ ) ... */
++
+ #endif /* defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) && !defined( __clang__ ) */
+ 
+ #if defined( __cplusplus )
diff --git a/debian/patches/series b/debian/patches/series
index 209ce02..9284471 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Fix-test-script.patch
+0002-Don-t-define-HAVE_BFIO_TEST_MEMORY-on-some-architect.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/libbfio.git



More information about the forensics-changes mailing list