Fix TestVSCode_attach on Linux
authorStella Stamenova <stilis@microsoft.com>
Thu, 9 May 2019 19:49:26 +0000 (19:49 +0000)
committerStella Stamenova <stilis@microsoft.com>
Thu, 9 May 2019 19:49:26 +0000 (19:49 +0000)
commitdde1d9a6b77547e82c7113509934a5672118d653
tree7d15e5f5f4c81a072cd485d2d706441ef600e0bb
parentd9c6b039dbcf4a38edf62a5491c2b024724e1b5d
Fix TestVSCode_attach on Linux

The test is failing sometimes because the debugger is failing to attach for lack of permissions. The fix is to call lldb_enable_attach inside the inferior main function

llvm-svn: 360371
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/attach/main.c