summaryrefslogtreecommitdiff
path: root/comphelper/qa/unit/test_hash.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/qa/unit/test_hash.cxx')
-rw-r--r--comphelper/qa/unit/test_hash.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/comphelper/qa/unit/test_hash.cxx b/comphelper/qa/unit/test_hash.cxx
index 650cd6fc6976..99ce5bfd1751 100644
--- a/comphelper/qa/unit/test_hash.cxx
+++ b/comphelper/qa/unit/test_hash.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <sal/config.h>
+#include <config_oox.h>
#include <comphelper/hash.hxx>
#include <comphelper/docpasswordhelper.hxx>
@@ -16,6 +18,10 @@
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
+#if USE_TLS_NSS
+#include <nss.h>
+#endif
+
class TestHash : public CppUnit::TestFixture
{
public:
@@ -26,6 +32,12 @@ public:
void testSHA512_NoSaltNoSpin();
void testSHA512_saltspin();
+ virtual void tearDown()
+ {
+#if USE_TLS_NSS
+ NSS_Shutdown();
+#endif
+ }
CPPUNIT_TEST_SUITE(TestHash);
CPPUNIT_TEST(testMD5);
CPPUNIT_TEST(testSHA1);