mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Fix tests build
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TRINITYCORE_UNIQUE_TRACKING_PTR_H
|
||||
#define TRINITYCORE_UNIQUE_TRACKING_PTR_H
|
||||
#ifndef TRINITYCORE_UNIQUE_TRACKABLE_PTR_H
|
||||
#define TRINITYCORE_UNIQUE_TRACKABLE_PTR_H
|
||||
|
||||
#include "Define.h"
|
||||
#include <memory>
|
||||
@@ -271,4 +271,4 @@ std::enable_if_t<std::is_bounded_array_v<T>, unique_trackable_ptr<T>> make_uniqu
|
||||
}
|
||||
}
|
||||
|
||||
#endif // TRINITYCORE_UNIQUE_TRACKING_PTR_H
|
||||
#endif // TRINITYCORE_UNIQUE_TRACKABLE_PTR_H
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "tc_catch2.h"
|
||||
|
||||
#include "UniqueTrackingPtr.h"
|
||||
#include "UniqueTrackablePtr.h"
|
||||
|
||||
struct TestObj
|
||||
{
|
||||
@@ -32,7 +32,7 @@ struct TestObj
|
||||
bool* Deleted = nullptr;
|
||||
};
|
||||
|
||||
TEST_CASE("Trinity::unique_trackable_ptr frees memory", "[UniqueTrackingPtr]")
|
||||
TEST_CASE("Trinity::unique_trackable_ptr frees memory", "[UniqueTrackablePtr]")
|
||||
{
|
||||
bool deleted = false;
|
||||
|
||||
@@ -57,7 +57,7 @@ TEST_CASE("Trinity::unique_trackable_ptr frees memory", "[UniqueTrackingPtr]")
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackingPtr]")
|
||||
TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackablePtr]")
|
||||
{
|
||||
Trinity::unique_trackable_ptr<int> ptr = Trinity::make_unique_trackable<int>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user