Fix tests build

This commit is contained in:
Shauren
2024-03-11 18:25:17 +01:00
parent 261a237cfa
commit 1f3ebbb23c
2 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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>();