Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 2543afa

Browse files
Merge pull request #1126 from igchor/test_workaround
tests: do not use basic_string_view comparison as a workaround
2 parents eb914d0 + 07e0764 commit 2543afa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/inline_string/inline_string.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ test_dram(nvobj::pool<struct root<T>> &pop)
265265
new (dram_location)
266266
string_type(nvobj::basic_string_view<T>(s.data(), s.length()));
267267

268-
UT_ASSERT(nvobj::basic_string_view<T>(s.data(), s.length()) ==
269-
nvobj::basic_string_view<T>(*dram_location));
268+
UT_ASSERTeq(s.length(), dram_location->size());
269+
UT_ASSERTeq(std::char_traits<T>::compare(
270+
s.data(), dram_location->data(), s.length()),
271+
0);
270272

271273
dram_location->~string_type();
272274

0 commit comments

Comments
 (0)