[Lldb-commits] [lldb] r281025 - Fix new gdb-remote client unit test for windows
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 9 02:49:54 PDT 2016
Author: labath
Date: Fri Sep 9 04:49:54 2016
New Revision: 281025
URL: http://llvm.org/viewvc/llvm-project?rev=281025&view=rev
Log:
Fix new gdb-remote client unit test for windows
The behaviour of FileSpec differed between host OS versions. Hardcode the path
syntax to posix, as we don't care about that in this test.
Modified:
lldb/trunk/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
Modified: lldb/trunk/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp?rev=281025&r1=281024&r2=281025&view=diff
==============================================================================
--- lldb/trunk/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp (original)
+++ lldb/trunk/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp Fri Sep 9 04:49:54 2016
@@ -196,8 +196,9 @@ TEST_F(GDBRemoteCommunicationClientTest,
llvm::Triple triple("i386-pc-linux");
- FileSpec file_specs[] = {FileSpec("/foo/bar.so", false),
- FileSpec("/foo/baz.so", false)};
+ FileSpec file_specs[] = {
+ FileSpec("/foo/bar.so", false, FileSpec::ePathSyntaxPosix),
+ FileSpec("/foo/baz.so", false, FileSpec::ePathSyntaxPosix)};
std::future<llvm::Optional<std::vector<ModuleSpec>>> async_result =
std::async(std::launch::async,
[&] { return client.GetModulesInfo(file_specs, triple); });
@@ -226,7 +227,7 @@ TEST_F(GDBRemoteCommunicationClientTest,
return;
llvm::Triple triple("i386-pc-linux");
- FileSpec file_spec("/foo/bar.so", false);
+ FileSpec file_spec("/foo/bar.so", false, FileSpec::ePathSyntaxPosix);
const char *invalid_responses[] = {
"OK", "E47", "[]",
More information about the lldb-commits
mailing list