Skip to content

Commit e6bb5f4

Browse files
committed
[lldb] Ensure that TestMemoryCache.py reads allocated memory
The test reads 400 bytes of memory above the local variable. If the stack is shallow, this can reach non-allocated space, resulting in a test failure.
1 parent c7bb105 commit e6bb5f4

File tree

1 file changed

+7
-1
lines changed
  • lldb/test/API/functionalities/memory/cache

1 file changed

+7
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
int main ()
1+
int test()
22
{
33
int my_ints[] = {0x42};
44
return 0; // Set break point at this line.
55
}
6+
7+
int main ()
8+
{
9+
int dummy[100];
10+
return test();
11+
}

0 commit comments

Comments
 (0)