aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-06-04 15:38:11 +0100
committerGitHub <noreply@github.com>2024-06-04 15:38:11 +0100
commit8917739b4cb39e6cd2355672ff6e2c140b19aafd (patch)
tree688fde8268bcb71eed6d03e546f1b3bbcbb112e6 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
parent31850fa97406d60ae8fa5f7bd107141c0fbc2615 (diff)
downloadllvm-8917739b4cb39e6cd2355672ff6e2c140b19aafd.zip
llvm-8917739b4cb39e6cd2355672ff6e2c140b19aafd.tar.gz
llvm-8917739b4cb39e6cd2355672ff6e2c140b19aafd.tar.bz2
[lldb][test] Disable MD5 test for old versions of Visual Studio (#94325)
In older versions there is this problem: https://developercommunity.visualstudio.com/t/c-shared-state-futuresstate-default-constructs-the/60897 Which prevents us making a future out of a result type. There's no good workaround so just don't compile this for older versions.
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
-rw-r--r--lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
index 2411139..11e14f9 100644
--- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
+++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
@@ -593,6 +593,10 @@ TEST_F(GDBRemoteCommunicationClientTest, WriteMemoryTags) {
"E03", false);
}
+// Prior to this verison, constructing a std::future for a type without a
+// default constructor is not possible.
+// https://developercommunity.visualstudio.com/t/c-shared-state-futuresstate-default-constructs-the/60897
+#if !defined(_MSC_VER) || _MSC_VER >= 1932
TEST_F(GDBRemoteCommunicationClientTest, CalculateMD5) {
FileSpec file_spec("/foo/bar", FileSpec::Style::posix);
std::future<ErrorOr<MD5::MD5Result>> async_result = std::async(
@@ -614,3 +618,4 @@ TEST_F(GDBRemoteCommunicationClientTest, CalculateMD5) {
EXPECT_EQ(expected_low, result->low());
EXPECT_EQ(expected_high, result->high());
}
+#endif