From 91c404292ab2bed6bf6a53d93bd5b4d6341fc930 Mon Sep 17 00:00:00 2001 From: Hadrien G Date: Thu, 18 Mar 2021 10:44:54 +0100 Subject: [PATCH] Add path separators to TRACCC_TEST_DATA_DIR --- examples/cpu/seq_example.cpp | 2 +- tests/io/csv_io_tests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cpu/seq_example.cpp b/examples/cpu/seq_example.cpp index 2615b2ffec..d8d6213349 100644 --- a/examples/cpu/seq_example.cpp +++ b/examples/cpu/seq_example.cpp @@ -24,7 +24,7 @@ int seq_run(const std::string& detector_file, const std::string& cells_dir, unsi { throw std::ios_base::failure("Test data directory not found. Please set TRACCC_TEST_DATA_DIR."); } - auto data_directory = std::string(env_d_d); + auto data_directory = std::string(env_d_d) + std::string("/"); // Read the surface transforms std::string io_detector_file = data_directory + detector_file; diff --git a/tests/io/csv_io_tests.cpp b/tests/io/csv_io_tests.cpp index 8d1cfdce01..f28ce6f19d 100644 --- a/tests/io/csv_io_tests.cpp +++ b/tests/io/csv_io_tests.cpp @@ -18,7 +18,7 @@ TEST(io, csv_read_single_module) { throw std::ios_base::failure("Test data directory not found. Please set TRACCC_TEST_DATA_DIR."); } - auto data_directory = std::string(env_d_d); + auto data_directory = std::string(env_d_d) + std::string("/"); std::string file = data_directory+std::string("single_module/cells.csv"); traccc::cell_reader creader(file, {"module", "cannel0","channel1","activation","time"} );