diff options
| author | robot-piglet <[email protected]> | 2026-06-30 05:57:08 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2026-06-30 06:18:09 +0300 |
| commit | 0175a55a175f6a62ce92d0234491e4d7346c6c19 (patch) | |
| tree | f086624326a4fd217977c818d2c6f0a2acc4fa74 /library/cpp | |
| parent | 66d0c52de24f9482c50a1efa2596824b7f635504 (diff) | |
Intermediate changes
commit_hash:a5ad51e30c00aeacf1073d685849e929e3113e9a
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/charset/ut/ya.make | 2 | ||||
| -rw-r--r-- | library/cpp/charset/wide_ut.cpp | 8 | ||||
| -rw-r--r-- | library/cpp/streams/lzma/lzma_ut.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/streams/lzma/ut/ya.make | 2 |
4 files changed, 11 insertions, 3 deletions
diff --git a/library/cpp/charset/ut/ya.make b/library/cpp/charset/ut/ya.make index c22436f8acf..62f3426f67c 100644 --- a/library/cpp/charset/ut/ya.make +++ b/library/cpp/charset/ut/ya.make @@ -1,5 +1,7 @@ UNITTEST_FOR(library/cpp/charset) +NO_COW() + SRCS( iconv_ut.cpp recyr_int_ut.cpp diff --git a/library/cpp/charset/wide_ut.cpp b/library/cpp/charset/wide_ut.cpp index 93567161bab..4f5a666cb8e 100644 --- a/library/cpp/charset/wide_ut.cpp +++ b/library/cpp/charset/wide_ut.cpp @@ -10,6 +10,8 @@ #include <algorithm> +extern const int TStringUseCow; + namespace { //! three UTF8 encoded russian letters (A, B, V) const char yandexCyrillicAlphabet[] = @@ -264,10 +266,12 @@ void TConversionTest::TestRecodeIntoString() { TUtf16String copy = sUnicode; // increase ref-counter wres = NDetail::Recode<char>(UTF8Text, sUnicode, CODES_UTF8); UNIT_ASSERT(sUnicode == UnicodeText); // same content + if (TStringUseCow) { #ifndef TSTRING_IS_STD_STRING - UNIT_ASSERT(sUnicode.data() != wdata); // re-allocated (shared buffer supplied) - UNIT_ASSERT(sUnicode.data() == wres.data()); // same buffer + UNIT_ASSERT(sUnicode.data() != wdata); // re-allocated (shared buffer supplied) + UNIT_ASSERT(sUnicode.data() == wres.data()); // same buffer #endif + } UNIT_ASSERT(sUnicode.size() == wres.size()); // same content } diff --git a/library/cpp/streams/lzma/lzma_ut.cpp b/library/cpp/streams/lzma/lzma_ut.cpp index 847e98d1caa..dbcd7d78fac 100644 --- a/library/cpp/streams/lzma/lzma_ut.cpp +++ b/library/cpp/streams/lzma/lzma_ut.cpp @@ -10,7 +10,7 @@ class TStrokaByOneByte: public IZeroCopyInput { public: TStrokaByOneByte(const TString& s) : Data(s) - , Pos(s.data()) + , Pos(Data.data()) { } diff --git a/library/cpp/streams/lzma/ut/ya.make b/library/cpp/streams/lzma/ut/ya.make index 99b7e5e401a..88fdb91dd1b 100644 --- a/library/cpp/streams/lzma/ut/ya.make +++ b/library/cpp/streams/lzma/ut/ya.make @@ -1,5 +1,7 @@ UNITTEST_FOR(library/cpp/streams/lzma) +NO_COW() + SRCS( lzma_ut.cpp ) |
