• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rttrorg / rttr / 717
92%

Build:
DEFAULT BRANCH: master
Ran 05 Mar 2018 07:25PM UTC
Jobs 2
Files 169
Run time 23s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
717

push

travis-ci

web-flow
Add new library class (#116)

* This adds the functionatliy to load libraries in a simple cross plattform way.
The native OS calls are wrapped behind a class interface.

Highlights:

- handling of file suffixes (.dll or .so)
- automatic unload of library on program exit
- etrieving of loaded types in library
- avoid of unncessary loading calls, when same plugin is loaded multiple times

additional:

- added unit tests
- added example of loading a plugin
- added a small tutorial how do develop plugins with RTTR

Development notes:

* fixed invalid memory access under MacOSX with clang

Actually the problem was also present under linux, (with gcc or clang).
This situation was following:
1. A plugin was loaded with type "int[100]" and registered
2. The plugin was unloaded => "int[100]" was removed from the type system and deleted
3. The type[100] was used in the unit_test later and was accessing the memory
of the already deleted type_data

The reason for this behavior lies in the usage of local static member variables
(which is used to cache the retrieving and registering of type_data information).
This variable was process wide unique, this lead to problems when unloading a plugin.
The static was no reinitialized when unloading the plugin.
So the variable was pointing to type_data information which was alreadyl deleted.

Now we are using RTTR_LOCAL to hide the symbols for exporting. This fixes the issues.

5726 of 6200 relevant lines covered (92.35%)

3704.39 hits per line

Jobs
ID Job ID Ran Files Coverage
3 717.3 (NAME="code coverage x86" COMPILER=g++-4.8 ARCH=x86 CONF=Debug GCOV_FLAGS='--coverage' UNIT_TESTS=true) 05 Mar 2018 07:26PM UTC 0
92.38
Travis Job 717.3
4 717.4 (NAME="code coverage x64" COMPILER=g++-4.8 ARCH=x86_64 CONF=Debug GCOV_FLAGS='--coverage' UNIT_TESTS=true) 05 Mar 2018 07:25PM UTC 0
92.27
Travis Job 717.4
Source Files on build 717
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #717
  • 7232d523 on github
  • Prev Build on master (#714)
  • Next Build on master (#720)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc