From fbfc7170fe02b5795cfff36b7007274f3364227e Mon Sep 17 00:00:00 2001 From: Omair Javaid Date: Thu, 30 Jun 2016 07:09:46 +0000 Subject: Correct watchpoint size test failure on certain devices I overlooked the possibility of certain targets translating increment statement into a read and write. In this case we replace increment statement with an assignment. llvm-svn: 274215 --- .../test/functionalities/watchpoint/watchpoint_size/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/watchpoint') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c index ea496304bea..ed9fed1e211 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c +++ b/lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c @@ -27,7 +27,7 @@ int main(int argc, char** argv) { { printf("About to write byteArray[%d] ...\n", i); // About to write byteArray pad0++; - byteArray[i]++; + byteArray[i] = 7; pad1++; localByte = byteArray[i]; // Here onwards we should'nt be stopped in loop byteArray[i]++; @@ -41,7 +41,7 @@ int main(int argc, char** argv) { { printf("About to write wordArray[%d] ...\n", i); // About to write wordArray pad0++; - wordArray[i]++; + wordArray[i] = 7; pad1++; localWord = wordArray[i]; // Here onwards we should'nt be stopped in loop wordArray[i]++; @@ -55,7 +55,7 @@ int main(int argc, char** argv) { { printf("About to write dwordArray[%d] ...\n", i); // About to write dwordArray pad0++; - dwordArray[i]++; + dwordArray[i] = 7; pad1++; localDword = dwordArray[i]; // Here onwards we shouldn't be stopped in loop dwordArray[i]++; -- cgit v1.2.3