summaryrefslogtreecommitdiffstats
path: root/libraries/LucenePlusPlus/LuceneTestFixture.patch
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo2014-06-02 05:03:27 +0200
committer Willy Sudiarto Raharjo2014-06-05 01:19:06 +0200
commitec43977fdfcf38bcb44b667afe48f0ab744b6682 (patch)
tree09c95fd286d69b7addc1d5a2e2f9094b945e3510 /libraries/LucenePlusPlus/LuceneTestFixture.patch
parent30d9448d938bb3a2b134b439219302f9239d04b3 (diff)
downloadslackbuilds-ec43977fdfcf38bcb44b667afe48f0ab744b6682.tar.gz
libraries/LucenePlusPlus: Added (text search engine)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/LucenePlusPlus/LuceneTestFixture.patch')
-rw-r--r--libraries/LucenePlusPlus/LuceneTestFixture.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/libraries/LucenePlusPlus/LuceneTestFixture.patch b/libraries/LucenePlusPlus/LuceneTestFixture.patch
new file mode 100644
index 0000000000..b36068eee6
--- /dev/null
+++ b/libraries/LucenePlusPlus/LuceneTestFixture.patch
@@ -0,0 +1,19 @@
+commit 4c1f1371e98c387cb07043c26b99beff5b5111a8
+Author: Alan Wright <alan@spotify.com>
+Date: Mon Apr 28 13:53:48 2014 +0100
+
+ Throw exception in fixture destructor instead of FAIL().
+
+diff --git a/src/test/util/LuceneTestFixture.cpp b/src/test/util/LuceneTestFixture.cpp
+index 27c61e0..e737bdb 100644
+--- a/src/test/util/LuceneTestFixture.cpp
++++ b/src/test/util/LuceneTestFixture.cpp
+@@ -21,7 +21,7 @@ LuceneTestFixture::~LuceneTestFixture() {
+ if (ConcurrentMergeScheduler::anyUnhandledExceptions()) {
+ // Clear the failure so that we don't just keep failing subsequent test cases
+ ConcurrentMergeScheduler::clearUnhandledExceptions();
+- FAIL() << "ConcurrentMergeScheduler hit unhandled exceptions";
++ boost::throw_exception(RuntimeException(L"ConcurrentMergeScheduler hit unhandled exceptions"));
+ }
+ }
+