Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/main/test.c')
-rw-r--r--agent/tcf/main/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/tcf/main/test.c b/agent/tcf/main/test.c
index 0d28de4f..3432fba5 100644
--- a/agent/tcf/main/test.c
+++ b/agent/tcf/main/test.c
@@ -306,9 +306,10 @@ void test_proc(void) {
}
int find_test_symbol(Context * ctx, const char * name, void ** addr, int * sym_class) {
-#if ENABLE_TestSymbols && !defined(ALT_RCBP_TEST)
/* This code allows to run TCF diagnostic tests when symbols info is not available */
*addr = NULL;
+ *sym_class = SYM_CLASS_UNKNOWN;
+#if ENABLE_TestSymbols && !defined(ALT_RCBP_TEST)
if (is_test_process(ctx) && strncmp(name, "tcf_test_", 9) == 0) {
if (strcmp(name, "tcf_test_array") == 0) {
*sym_class = SYM_CLASS_REFERENCE;

Back to the top