diff options
author | Pavel Labath <labath@google.com> | 2016-09-09 09:49:54 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-09-09 09:49:54 +0000 |
commit | 6e5e49fbdfd354b7e667a81d35daf7d578a45258 (patch) | |
tree | 25be0c0ac7ea8fa092a3be46e62ca59333e832a3 /lldb/unittests/Process | |
parent | 56b21c869ef8dc07e2b46ccfc8a719364bc1e85a (diff) | |
download | bcm5719-llvm-6e5e49fbdfd354b7e667a81d35daf7d578a45258.tar.gz bcm5719-llvm-6e5e49fbdfd354b7e667a81d35daf7d578a45258.zip |
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.
llvm-svn: 281025
Diffstat (limited to 'lldb/unittests/Process')
-rw-r--r-- | lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp index 1fa24c98bb9..618055fcff2 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp @@ -196,8 +196,9 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo) { 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, GetModulesInfoInvalidResponse) { 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", "[]", |