diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-26 13:36:07 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-26 13:36:07 +1000 |
| commit | 4d99d22e10a3cb2a421da1618c127128816613c9 (patch) | |
| tree | 527490a466348e5cf40cf10a8f3768aa5be4e7c1 /src/drivers/test/test_storage.cpp | |
| parent | f6d06421090f88094aba76b72b04d614f54efafa (diff) | |
| download | tangara-fw-4d99d22e10a3cb2a421da1618c127128816613c9.tar.gz | |
std::string -> std::pmr::string in psram
Diffstat (limited to 'src/drivers/test/test_storage.cpp')
| -rw-r--r-- | src/drivers/test/test_storage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/test/test_storage.cpp b/src/drivers/test/test_storage.cpp index c785fa01..062de3af 100644 --- a/src/drivers/test/test_storage.cpp +++ b/src/drivers/test/test_storage.cpp @@ -22,9 +22,9 @@ namespace drivers { -static const std::string kTestFilename = "test"; -static const std::string kTestFilePath = - std::string(kStoragePath) + "/" + kTestFilename; +static const std::pmr::string kTestFilename = "test"; +static const std::pmr::string kTestFilePath = + std::pmr::string(kStoragePath) + "/" + kTestFilename; TEST_CASE("sd card storage", "[integration]") { I2CFixture i2c; @@ -46,7 +46,7 @@ TEST_CASE("sd card storage", "[integration]") { std::ifstream test_file; test_file.open(kTestFilePath.c_str()); - std::string line; + std::pmr::string line; REQUIRE(std::getline(test_file, line)); REQUIRE(line == "hello here is some test"); |
