[Pkg-privacy-commits] [libotr] 05/07: 0003-Disable-tests-that-fail-because-we-disable-the-API-v.patch: disable the test cases that fail because we disable the API version check at runtime.
Intrigeri
intrigeri at moszumanska.debian.org
Tue Jan 12 04:50:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch master
in repository libotr.
commit cf1dbf48902c371fd1a62d72560b16858322950f
Author: intrigeri <intrigeri at debian.org>
Date: Tue Jan 12 03:55:08 2016 +0000
0003-Disable-tests-that-fail-because-we-disable-the-API-v.patch: disable the test cases that fail because we disable the API version check at runtime.
---
...ts-that-fail-because-we-disable-the-API-v.patch | 42 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 43 insertions(+)
diff --git a/debian/patches/0003-Disable-tests-that-fail-because-we-disable-the-API-v.patch b/debian/patches/0003-Disable-tests-that-fail-because-we-disable-the-API-v.patch
new file mode 100644
index 0000000..3adc753
--- /dev/null
+++ b/debian/patches/0003-Disable-tests-that-fail-because-we-disable-the-API-v.patch
@@ -0,0 +1,42 @@
+From: intrigeri <intrigeri at debian.org>
+Date: Tue, 12 Jan 2016 03:47:46 +0000
+Forwarded: not-needed
+Subject: Disable tests that fail because we disable the API version runtime
+ check.
+
+---
+ tests/unit/test_proto.c | 14 +-------------
+ 1 file changed, 1 insertion(+), 13 deletions(-)
+
+diff --git a/tests/unit/test_proto.c b/tests/unit/test_proto.c
+index 5b522ef..d96ae33 100644
+--- a/tests/unit/test_proto.c
++++ b/tests/unit/test_proto.c
+@@ -24,7 +24,7 @@
+
+ GCRY_THREAD_OPTION_PTHREAD_IMPL;
+
+-#define NUM_TESTS 48
++#define NUM_TESTS 42
+
+ static ConnContext *new_context(const char *user, const char *accountname,
+ const char *protocol)
+@@ -165,18 +165,6 @@ void test_otrl_init(void)
+
+ const unsigned int expected = rand();
+ otrl_api_version = expected;
+- ok(otrl_init(OTRL_VERSION_MAJOR+1, 0, 0) == gcry_error(GPG_ERR_INV_VALUE),
+- "Too recent major version");
+- ok(otrl_api_version == expected, "Api number unchanged");
+-
+- ok(otrl_init(OTRL_VERSION_MAJOR-1, 0, 0) == gcry_error(GPG_ERR_INV_VALUE),
+- "Too old major version");
+- ok(otrl_api_version == expected, "Api number unchanged");
+-
+- ok(otrl_init(OTRL_VERSION_MAJOR, OTRL_VERSION_MINOR+1, 0)
+- == gcry_error(GPG_ERR_INV_VALUE),
+- "Too recent minor version");
+- ok(otrl_api_version = expected, "Api number unchanged");
+
+ ok(otrl_init(OTRL_VERSION_MAJOR, OTRL_VERSION_MINOR?OTRL_VERSION_MINOR-1:0,
+ OTRL_VERSION_SUB) == gcry_error(GPG_ERR_NO_ERROR),
diff --git a/debian/patches/series b/debian/patches/series
index f5dc156..b66bead 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Do-not-error-out-when-an-application-is-run-against-.patch
0002-Test-Add-new-test-suite-in-tests.patch
+0003-Disable-tests-that-fail-because-we-disable-the-API-v.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libotr.git
More information about the Pkg-privacy-commits
mailing list