Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Unable to generate stubs

Whuang
Whuang Posts: 1

Hello,

I've integrated the Parasoft plugin into Atollic TrueSTUDIO - an eclipse-based IDE for developing ARM cortex devices.

I am attempting to generate unit tests and stubs as a file scope configuration, however it results in a lot of setup problems:

Test execution: error preparing instrumentation / symbols data for file.
"C:\Program Files (x86)\Parasoft\C++test for
          Eclipse\10.3\engine\runtime\include/cpptest_runtime_u.h", line 1221:
          error: identifier "sigjmp_buf" is undefined
   sigjmp_buf* cpptestGetJmpBuf(void);
   ^

"../../../Drivers/Generic/CMSIS/Include/cmsis_gcc.h", line 85: warning:
          variable "result" is used before its value is set
    return(result);
           ^


"../../../Drivers/ST/STM32L4xx/HAL_Driver/Inc/stm32l4xx_ll_adc.h", line 3026:
          warning: conversion from pointer to same-sized integral type
          (potential portability problem)
                              ((uint32_t)(&ADCx->OFR1) + (Offsety*4U)));

How can I go about fixing these?

Thanks,
William

Answers

  • Mirek
    Mirek Posts: 141 admin

    Hi William,

    Can you please provide the full console log?
    Please clear the cache before (Project Properties->Parasoft->C/C++test->Other Settings->C/C++test temporary files>Clear?) and make sure console verbosity is set to high (Parasoft Menu->Preferences->Console select high) then re-run the test configuration that is reproducing the error. Once you have the error in the console please provide the content.

  • Andrey Madan
    Andrey Madan Posts: 388 ✭✭✭

    William,

    You might need to add
    -DCPPTEST_SETJMP_ENABLED=0 to the list of compiler settings. If you want to know how to add additional compiler and linker settings:
    https://docs.parasoft.com/pages/viewpage.action?pageId=38640494

    If you want to study and find more details to how to build Runtime Lib and why the #define might matter - here is the doc

    https://docs.parasoft.com/pages/viewpage.action?pageId=38641189