From 6e5e49fbdfd354b7e667a81d35daf7d578a45258 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 9 Sep 2016 09:49:54 +0000 Subject: [PATCH] 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 --- .../Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp index 1fa24c9..618055f 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>> 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", "[]", -- 2.7.4