[Lldb-commits] [PATCH] D112169: [lldb] [Communication] Add a WriteAll() method that resumes writing

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 26 01:58:11 PDT 2021


mgorny added inline comments.


================
Comment at: lldb/unittests/Core/CommunicationTest.cpp:80
+  std::vector<char> data(1024 * 1024, 0x80);
+  EXPECT_EQ(write_comm.WriteAll(data.data(), data.size(), conn_status, &error),
+            data.size());
----------------
If we want to be super-strict, I can add an another `Write()` call above to verify that a partial write happens — but I'm not sure if we should fail on that.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112169/new/

https://reviews.llvm.org/D112169



More information about the lldb-commits mailing list