diff options
author | Omair Javaid <omair.javaid@linaro.org> | 2016-06-30 07:09:46 +0000 |
---|---|---|
committer | Omair Javaid <omair.javaid@linaro.org> | 2016-06-30 07:09:46 +0000 |
commit | fbfc7170fe02b5795cfff36b7007274f3364227e (patch) | |
tree | fd7be2fa3a5d82f40de93fdac0b53852d16721d1 /lldb/packages/Python/lldbsuite/test | |
parent | b4fe59b595d615a01c3688443cb61998018451fb (diff) | |
download | bcm5719-llvm-fbfc7170fe02b5795cfff36b7007274f3364227e.tar.gz bcm5719-llvm-fbfc7170fe02b5795cfff36b7007274f3364227e.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
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]++; |