Skip to content
Snippets Groups Projects
Commit 0713a1c2 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

TST: test relative path

parent 912a4290
No related branches found
No related tags found
No related merge requests found
Pipeline #12671 passed with warnings
Pipeline: caosdb-cppinttest

#12674

    ...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
    #include "caosdb/status_code.h" // for StatusCode, FILE_DO... #include "caosdb/status_code.h" // for StatusCode, FILE_DO...
    #include "caosdb/transaction.h" // for Transaction #include "caosdb/transaction.h" // for Transaction
    #include "caosdb/value.h" // for Value #include "caosdb/value.h" // for Value
    #include <boost/filesystem/path.hpp> // for path
    #include <exception> #include <exception>
    #include <google/protobuf/arena.h> // for Arena #include <google/protobuf/arena.h> // for Arena
    #include <gtest/gtest-message.h> // for Message #include <gtest/gtest-message.h> // for Message
    ...@@ -459,6 +460,9 @@ TEST(test_entity, test_add_file) { ...@@ -459,6 +460,9 @@ TEST(test_entity, test_add_file) {
    Entity entity; Entity entity;
    entity.SetRole(Role::FILE); entity.SetRole(Role::FILE);
    EXPECT_EQ(entity.SetLocalPath(TEST_DATA_DIR + "/test.json"), StatusCode::SUCCESS); EXPECT_EQ(entity.SetLocalPath(TEST_DATA_DIR + "/test.json"), StatusCode::SUCCESS);
    EXPECT_EQ(entity.SetLocalPath(
    boost::filesystem::relative(TEST_DATA_DIR + "/test.json")),
    StatusCode::SUCCESS);
    } }
    } // namespace caosdb::entity } // namespace caosdb::entity
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment