Skip to content

[lldb][test] Fix simulator test for std::unique_ptr #99357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

luporl
Copy link
Contributor

@luporl luporl commented Jul 17, 2024

libcxx-simulators/unique_ptr/main.cpp uses __builtin_printf, that
maps to printf on Windows. Include stdio.h to avoid linker errors
on Windows.
See https://lab.llvm.org/buildbot/#/builders/141/builds/853

libcxx-simulators/unique_ptr/main.cpp uses __builtin_printf, that
maps to printf on Windows. Include stdio.h to avoid linker errors
on Windows.
See https://lab.llvm.org/buildbot/#/builders/141/builds/853
@luporl luporl requested a review from JDevlieghere as a code owner July 17, 2024 17:15
@llvmbot llvmbot added the lldb label Jul 17, 2024
@llvmbot
Copy link
Member

llvmbot commented Jul 17, 2024

@llvm/pr-subscribers-lldb

Author: Leandro Lupori (luporl)

Changes

libcxx-simulators/unique_ptr/main.cpp uses __builtin_printf, that
maps to printf on Windows. Include stdio.h to avoid linker errors
on Windows.
See https://lab.llvm.org/buildbot/#/builders/141/builds/853


Full diff: https://github.com/llvm/llvm-project/pull/99357.diff

1 Files Affected:

  • (modified) lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/unique_ptr/main.cpp (+2)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/unique_ptr/main.cpp b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/unique_ptr/main.cpp
index 08324e24f9cc4..a6bfaa3febebb 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/unique_ptr/main.cpp
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/unique_ptr/main.cpp
@@ -1,5 +1,7 @@
 #include <libcxx-simulators-common/compressed_pair.h>
 
+#include <stdio.h>
+
 namespace std {
 namespace __lldb {
 template <class _Tp> struct default_delete {

@luporl luporl requested a review from Michael137 July 17, 2024 17:15
@luporl
Copy link
Contributor Author

luporl commented Jul 17, 2024

Test added in #98330.

@luporl
Copy link
Contributor Author

luporl commented Jul 17, 2024

Merging to fix https://lab.llvm.org/buildbot/#/builders/141/builds/853, which has been broken for over 36 hours.

@luporl luporl merged commit 93d38d7 into llvm:main Jul 17, 2024
6 of 7 checks passed
@luporl luporl deleted the luporl-fix-lldb-test-win branch July 17, 2024 17:49
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
libcxx-simulators/unique_ptr/main.cpp uses __builtin_printf, that
maps to printf on Windows. Include stdio.h to avoid linker errors
on Windows.
See https://lab.llvm.org/buildbot/#/builders/141/builds/853

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60250904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants