The issue with these test failures is that the dSYM was not being found by lldb, which is why setting breakpoints was failing and lldb quit without performing any steps. This change copies the dSYM to the same temp directory that the executable is copied to.
25 lines
486 B
C++
25 lines
486 B
C++
// Purpose:
|
|
// Ensure that the debug information for a global variable includes
|
|
// namespace information.
|
|
|
|
// REQUIRES: lldb
|
|
// UNSUPPORTED: system-windows
|
|
|
|
// RUN: %clang -g -O0 %s -o %t
|
|
// RUN: %dexter --fail-lt 1.0 -w \
|
|
// RUN: --binary %t --debugger 'lldb' -v -- %s
|
|
|
|
#include <stdio.h>
|
|
|
|
namespace monkey {
|
|
const int ape = 32;
|
|
}
|
|
|
|
int main() {
|
|
printf("hello %d\n", monkey::ape); // DexLabel('main')
|
|
return 0;
|
|
}
|
|
|
|
// DexExpectWatchValue('monkey::ape', 32, on_line=ref('main'))
|
|
|