aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cpputest/test-s390x.patch
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2018-02-10 07:02:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-02-13 15:24:01 +0000
commit54124a59f87a2a70751069697523913cd9e6481a (patch)
treed8e5606ed68ebd98ca0e9cae2d5ceb3cf8d7bf71 /testing/cpputest/test-s390x.patch
parent180078c9b5f4acbf5b878b56c2b772e44d3d3a9c (diff)
downloadaports-54124a59f87a2a70751069697523913cd9e6481a.tar.bz2
aports-54124a59f87a2a70751069697523913cd9e6481a.tar.xz
testing/cpputest: patch test on s390x
Diffstat (limited to 'testing/cpputest/test-s390x.patch')
-rw-r--r--testing/cpputest/test-s390x.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/cpputest/test-s390x.patch b/testing/cpputest/test-s390x.patch
new file mode 100644
index 0000000000..1317511263
--- /dev/null
+++ b/testing/cpputest/test-s390x.patch
@@ -0,0 +1,17 @@
+ref https://github.com/cpputest/cpputest/issues/1004
+
+diff --git a/tests/CppUTestExt/MockSupport_cTest.cpp b/tests/CppUTestExt/MockSupport_cTest.cpp
+index 8fc55ec..5188857 100644
+--- a/tests/CppUTestExt/MockSupport_cTest.cpp
++++ b/tests/CppUTestExt/MockSupport_cTest.cpp
+@@ -186,8 +186,8 @@ TEST(MockSupport_c, outputParameters_differentType)
+
+ TEST(MockSupport_c, outputParametersOfType)
+ {
+- long param = 1;
+- const long retval = 2;
++ int param = 1;
++ const int retval = 2;
+ mock_c()->installCopier("typeName", typeCopy);
+ mock_c()->expectOneCall("foo")->withOutputParameterOfTypeReturning("typeName", "out", &retval);
+ mock_c()->actualCall("foo")->withOutputParameterOfType("typeName", "out", &param);