Skip to content

Commit

Permalink
Fix path comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
janweinstock committed Jan 31, 2024
1 parent 59b76d6 commit ca31b6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/testing.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <string>
#include <vector>
#include <random>
#include <filesystem>

std::vector<std::string> args;

Expand Down
4 changes: 2 additions & 2 deletions test/utils/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using namespace mwr;
#define SHARED_NAME "shared-" SHARED_ARCH SHARED_SUFFIX

static string get_test_library() {
return std::filesystem::path(get_resource_path(SHARED_NAME)).string();
return get_resource_path(SHARED_NAME);
}

TEST(library, basic) {
Expand Down Expand Up @@ -125,5 +125,5 @@ TEST(libary, relpath) {
library lib;
lib.open(SHARED_NAME);
EXPECT_STREQ(lib.name(), SHARED_NAME);
EXPECT_EQ(get_test_library(), lib.path());
EXPECT_TRUE(is_path_equal(lib.path(), get_test_library()));
}

0 comments on commit ca31b6f

Please sign in to comment.