Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2018-09-25 04:32:32 +0000
committerEugene Tarassov2018-09-25 11:06:55 +0000
commitb311d3747992a543452dcad840e9010602f26a19 (patch)
tree14282b7ffae80921f29b2a8950ca77f72ab44a33 /plugins
parent1bd35c7130155f07a64a45813ca5e4c7a07ba40e (diff)
downloadorg.eclipse.tcf-b311d3747992a543452dcad840e9010602f26a19.tar.gz
org.eclipse.tcf-b311d3747992a543452dcad840e9010602f26a19.tar.xz
org.eclipse.tcf-b311d3747992a543452dcad840e9010602f26a19.zip
TCF Tests: more tests for the Expressions service
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
index ddd0be485..237211fd3 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2014 Wind River Systems, Inc. and others.
+ * Copyright (c) 2008-2018 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -100,7 +100,11 @@ class TestExpressions implements ITCFTest, RunControl.DiagnosticTestDone,
"tcf_cpp_test_class_extension_ref",
"tcf_cpp_test_class_extension_member_ptr",
"tcf_cpp_test_anonymous_union_var",
- "tcf_test_array_field"
+ "tcf_test_array_field",
+ "tcf_test_func1",
+ "tcf_test_func2",
+ "tcf_test_func3",
+ "tcf_test_func4",
};
private static final String[] test_expressions = {
@@ -180,6 +184,9 @@ class TestExpressions implements ITCFTest, RunControl.DiagnosticTestDone,
"&tcf_cpp_test_int_ref == &tcf_cpp_test_class::s_int",
"sizeof(tcf_cpp_test_int_ref) == sizeof(int)",
"sizeof(tcf_cpp_test_class_extension_ref) == sizeof(tcf_cpp_test_class_extension_var)",
+ "&*tcf_test_func4==tcf_test_func4",
+ "&(*tcf_test_func4)==tcf_test_func4",
+ "&tcf_test_func4[0]==tcf_test_func4",
};
private static final String[] test_dprintfs = {
@@ -556,7 +563,7 @@ class TestExpressions implements ITCFTest, RunControl.DiagnosticTestDone,
if (error != null) {
if (error instanceof IErrorReport &&
((IErrorReport)error).getErrorCode() == IErrorReport.TCF_ERROR_SYM_NOT_FOUND) {
- if (nm.startsWith("tcf_cpp_") || nm.equals("tcf_test_array_field")) {
+ if (nm.startsWith("tcf_cpp_") || nm.equals("tcf_test_array_field") || nm.equals("tcf_test_func4")) {
global_var_ids.put(nm, null);
runTest();
return;

Back to the top