diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-09-30 06:49:02 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-09-30 06:49:02 +0800 |
commit | 9fc8b7d7d08cdb1624699439c13d61b7d62b38dd (patch) | |
tree | 2a17cf1f133f8c375aa6ac1ae7c0ef86a8026e99 /devel | |
parent | e498da6cbd4a7b5ef1cca2fcee6105d9d81b648d (diff) | |
download | freebsd-ports-graphics-9fc8b7d7d08cdb1624699439c13d61b7d62b38dd.tar.gz freebsd-ports-graphics-9fc8b7d7d08cdb1624699439c13d61b7d62b38dd.tar.zst freebsd-ports-graphics-9fc8b7d7d08cdb1624699439c13d61b7d62b38dd.zip |
devel/android-tools-*: disable some known-to-fail tests
Diffstat (limited to 'devel')
-rw-r--r-- | devel/android-tools-adb-devel/Makefile | 15 | ||||
-rw-r--r-- | devel/android-tools-adb-devel/files/patch-adb_socket__test.cpp | 20 | ||||
-rw-r--r-- | devel/android-tools-simpleperf/Makefile | 8 |
3 files changed, 43 insertions, 0 deletions
diff --git a/devel/android-tools-adb-devel/Makefile b/devel/android-tools-adb-devel/Makefile index 9d3d0c3ae05..844995fb6aa 100644 --- a/devel/android-tools-adb-devel/Makefile +++ b/devel/android-tools-adb-devel/Makefile @@ -27,8 +27,23 @@ TEST_BUILD_DEPENDS=googletest>=1.6.0:${PORTSDIR}/devel/googletest \ TEST_USES= python:2.7,build TEST_ALL_TARGET=adb_test +post-patch: slave-post-patch +slave-post-patch: +# XXX C++ exception with description "regex_error" thrown in the test body. + @if [ ${OPSYS} = FreeBSD -a ${OSREL:R} -lt 10 ]; then \ + ${REINPLACE_CMD} -Ee '/^TEST/\ + s/ (LOG|PLOG|UNIMPLEMENTED)/ DISABLED_\1/' \ + ${WRKSRC}/base/logging_test.cpp; \ + fi +.if defined(PACKAGE_BUILDING) +# XXX /dev/full isn't mounted by poudriere/tinderbox + @${REINPLACE_CMD} -e '/^TEST/s/[^ ]*ENOSPC/DISABLED_&/' \ + ${WRKSRC}/adb/adb_io_test.cpp +.endif + pre-install-TEST-on: ${BUILD_WRKSRC}/adb_test +# XXX python tests may leave behind running adb server PATH=${BUILD_WRKSRC}:${PATH} PYTHONPATH=${WRKSRC} \ ${PYTHON_CMD} ${BUILD_WRKSRC}/test_adb.py PATH=${BUILD_WRKSRC}:${PATH} PYTHONPATH=${WRKSRC} \ diff --git a/devel/android-tools-adb-devel/files/patch-adb_socket__test.cpp b/devel/android-tools-adb-devel/files/patch-adb_socket__test.cpp new file mode 100644 index 00000000000..8c6e78e3287 --- /dev/null +++ b/devel/android-tools-adb-devel/files/patch-adb_socket__test.cpp @@ -0,0 +1,20 @@ +Likely fails for the same reason as on OS X. + + [ RUN ] LocalSocketTest.close_with_no_events_installed + socket_test.cpp:36: Failure + Value of: fdevent_installed_count() + Actual: 2 + Expected: 1u + Which is: 1 + +--- adb/socket_test.cpp.orig 2015-09-17 22:58:36 UTC ++++ adb/socket_test.cpp +@@ -277,7 +277,7 @@ static void CloseNoEventsThreadFunc(Clos + // This test successes on linux but fails on mac because of different implementation of + // poll(). I think the function tested here is useful to make adb server more stable on + // linux. +-TEST_F(LocalSocketTest, close_with_no_events_installed) { ++TEST_F(LocalSocketTest, DISABLED_close_with_no_events_installed) { + int socket_fd[2]; + ASSERT_EQ(0, adb_socketpair(socket_fd)); + diff --git a/devel/android-tools-simpleperf/Makefile b/devel/android-tools-simpleperf/Makefile index e7c2ac421f3..c3f93b3261b 100644 --- a/devel/android-tools-simpleperf/Makefile +++ b/devel/android-tools-simpleperf/Makefile @@ -41,6 +41,14 @@ post-extract: @(cd ${WRKSRC_core} && ${COPYTREE_SHARE} . ${WRKSRC}) @${MV} ${WRKSRC_bionic} ${WRKSRC}/bionic +post-patch: +# XXX C++ exception with description "regex_error" thrown in the test body. + @if [ ${OPSYS} = FreeBSD -a ${OSREL:R} -lt 10 ]; then \ + ${REINPLACE_CMD} -Ee '/^TEST/\ + s/ (LOG|PLOG|UNIMPLEMENTED)/ DISABLED_\1/' \ + ${WRKSRC}/base/logging_test.cpp; \ + fi + pre-install-TEST-on: ${BUILD_WRKSRC}/simpleperf_unit_test |