summaryrefslogtreecommitdiff
path: root/test/712-varhandle-invocations/util-src/generate_java.py
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-03-12 13:09:37 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-03-12 15:43:02 +0000
commit68f3ec8001c46f00f82043d7100c04dee4449c48 (patch)
tree083a3bd574f2757e2bcdea492dfcd852c22eb191 /test/712-varhandle-invocations/util-src/generate_java.py
parentc507f12bc90d8b79c56f0f10895acc71287498d2 (diff)
Do not test VarHandle.getAndAdd(..., 0).
Temporarily remove the test because it hits a bug on arm64. The test shall be added back together with a fix. This partially reverts commit 7b6786441045496aaf84a0f40289a62ead431672 . Test: Presubmit. Bug: 328420806 Change-Id: I85d767b0dda1cf15a426d0ced6e9427354839d2f
Diffstat (limited to 'test/712-varhandle-invocations/util-src/generate_java.py')
-rw-r--r--test/712-varhandle-invocations/util-src/generate_java.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/712-varhandle-invocations/util-src/generate_java.py b/test/712-varhandle-invocations/util-src/generate_java.py
index 352c4d9fc5..e32cee9763 100644
--- a/test/712-varhandle-invocations/util-src/generate_java.py
+++ b/test/712-varhandle-invocations/util-src/generate_java.py
@@ -916,8 +916,6 @@ def emit_accessor_test(var_handle_kind, accessor, var_type, output_path):
if var_type.supports_numeric == True:
expansions['binop'] = accessor.get_java_numeric_operator()
test_template = Template("""
- ${var_type} unchanged = (${var_type}) vh.${accessor_method}(${coordinates}(${var_type}) 0);
- assertEquals(${initial_value}, unchanged);
${var_type} old_value = (${var_type}) vh.${accessor_method}(${coordinates}${updated_value});
assertEquals(${initial_value}, old_value);
${var_type} expected_value = (${var_type}) (${initial_value} ${binop} ${updated_value});