Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • D dmt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TASTETASTE
  • dmt
  • Merge requests
  • !13

Fix Qgen(C/Ada) mapping

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Angel Perez Muñoz requested to merge feature_qgen_integration into feature_bullseye Dec 19, 2021
  • Overview 12
  • Commits 3
  • Pipelines 2
  • Changes 1

The following bug was discovered while testing the capabilities the TASTE and QGen integration. There is an issue with the .adb generated in the QGenC function wrapper.

Steps to reproduce:

  1. Create an OpenGeode-SDL function and a QGenC function.
  2. Connect them, so that the OpenGeode can call the QGenC function cyclically.
  3. Create the Deployment View and build the system.

Results:

Kazoo generated the wrappers/<QGenC-provided-interface>.adb code with one error because the return value of one of its functions is ignored. I didn't spot this error before because I used only C functions, and the .gpr did not include Ada as a programming language. But now with the OpenGeode-SDL function, it is included.

Additional info:

I tested a similar scenario with an OpenGeode-SDL and a Simulink function, and everything was OK; i.e., the return value of the Ada function was not ignored.

Proposed solution:

The issues were located in synchronousTool.py. Specifically, the bytes_integer output parameter was missing and the returned value from one function was ignored.

Edited Dec 19, 2021 by Angel Perez Muñoz
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature_qgen_integration