summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-02 23:39:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-02 23:39:44 +0300
commit53cd20d682e6d97c02872ff6336d332cf8d58d45 (patch)
treecc7049c316434f413982f1f380fc95ba510e4090 /src/resources
parent22e8f318d41b1a4fcc8c5227fe70f10f3decafe0 (diff)
downloadmanaplus-53cd20d682e6d97c02872ff6336d332cf8d58d45.tar.gz
manaplus-53cd20d682e6d97c02872ff6336d332cf8d58d45.tar.bz2
manaplus-53cd20d682e6d97c02872ff6336d332cf8d58d45.tar.xz
manaplus-53cd20d682e6d97c02872ff6336d332cf8d58d45.zip
Fix unit tests after last updates.
Disable some tests because they failing from asserts.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/itemdb.cpp5
-rw-r--r--src/resources/db/itemdb.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 0fda7e736..d79f75933 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -1074,4 +1074,9 @@ ItemDB::NamedItemInfos &ItemDB::getNamedItemInfosTest()
{
return mNamedItemInfos;
}
+
+ItemDB::ItemInfos &ItemDB::getItemInfosTest()
+{
+ return mItemInfos;
+}
#endif
diff --git a/src/resources/db/itemdb.h b/src/resources/db/itemdb.h
index b0aceef32..cc94145ab 100644
--- a/src/resources/db/itemdb.h
+++ b/src/resources/db/itemdb.h
@@ -72,6 +72,8 @@ namespace ItemDB
#ifdef UNITTESTS
ItemDB::NamedItemInfos &getNamedItemInfosTest();
+
+ ItemDB::ItemInfos &getItemInfosTest();
#endif
int getTagId(const std::string &tagName) A_WARN_UNUSED;