[Lldb-commits] [lldb] 2622c5e - [lldb] Adapt lldb tests to changes in 71cdb8c6f144

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 25 05:37:21 PDT 2022


On 24/07/2022 00:45, Augusto Noronha via lldb-commits wrote:
> 
> Author: Augusto Noronha
> Date: 2022-07-23T15:37:26-07:00
> New Revision: 2622c5e212646d1c8d6a43444d7c5b551f0221ad
> 
> URL: https://github.com/llvm/llvm-project/commit/2622c5e212646d1c8d6a43444d7c5b551f0221ad
> DIFF: https://github.com/llvm/llvm-project/commit/2622c5e212646d1c8d6a43444d7c5b551f0221ad.diff
> 
> LOG: [lldb] Adapt lldb tests to changes in 71cdb8c6f144
> 

Are you sure you have the right commit there?

Somehow I doubt that "[ADT] Use default member initialization (NFC)" 
(https://github.com/llvm/llvm-project/commit/71cdb8c6f144b8f78fed1f39dc6b9c153f9023c1) 
could cause this to break.

pl

> Added:
>      
> 
> Modified:
>      lldb/test/API/functionalities/dlopen_other_executable/main.c
>      lldb/test/API/macosx/ignore_exceptions/main.c
> 
> Removed:
>      
> 
> 
> ################################################################################
> diff  --git a/lldb/test/API/functionalities/dlopen_other_executable/main.c b/lldb/test/API/functionalities/dlopen_other_executable/main.c
> index 8f21e862a2b58..f48f6177e7db0 100644
> --- a/lldb/test/API/functionalities/dlopen_other_executable/main.c
> +++ b/lldb/test/API/functionalities/dlopen_other_executable/main.c
> @@ -4,7 +4,7 @@
>   int main() {
>     int i = 0; // break here
>     // dlopen the 'other' test executable.
> -  int h = dlopen("other", RTLD_LAZY);
> +  int h = (int) dlopen("other", RTLD_LAZY);
>     assert(h && "dlopen failed?");
>     return i; // break after dlopen
>   }
> 
> diff  --git a/lldb/test/API/macosx/ignore_exceptions/main.c b/lldb/test/API/macosx/ignore_exceptions/main.c
> index 682c5f23627e0..b9513aa35b3ed 100644
> --- a/lldb/test/API/macosx/ignore_exceptions/main.c
> +++ b/lldb/test/API/macosx/ignore_exceptions/main.c
> @@ -13,7 +13,7 @@ void
>   saction_handler(int signo, siginfo_t info, void *baton) {
>     printf("Got into handler.\n");   // stop here in the signal handler
>     kern_return_t success
> -      = mach_vm_protect(mach_task_self(), g_int_ptr,
> +      = mach_vm_protect(mach_task_self(), (mach_vm_address_t) g_int_ptr,
>                           g_size, 0, VM_PROT_READ|VM_PROT_WRITE);
>     g_int_ptr[1] = 20;
>   }
> @@ -24,7 +24,7 @@ main()
>     for (int i = 0; i < 10; i++)
>       g_int_ptr[i] = i * 10;
>     
> -  vm_result = mach_vm_protect(mach_task_self(), g_int_ptr, g_size, 0, VM_PROT_NONE);
> +  vm_result = mach_vm_protect(mach_task_self(), (mach_vm_address_t) g_int_ptr, g_size, 0, VM_PROT_NONE);
>     struct sigaction my_action;
>     sigemptyset(&my_action.sa_mask);
>     my_action.sa_handler = (void (*)(int)) saction_handler;
> 
> 
>          
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits



More information about the lldb-commits mailing list