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

nasa / trick / 25456501308

06 May 2026 07:29PM UTC coverage: 55.935% (-0.8%) from 56.7%
25456501308

Pull #2011

github

web-flow
Merge 7ad262960 into 7054e405e
Pull Request #2011: Single-file CI and code style adoption

14612 of 26123 relevant lines covered (55.94%)

462107.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/trick_source/sim_services/MemoryManager/MemoryManager_add_shared_library_symbols.cpp
1
/*
2
   PURPOSE: ( Add a shared library )
3
   REFERENCE:
4
   ASSUMPTIONS AND LIMITATIONS:
5
   PROGRAMMERS: ( (Alex Lin) (NASA) (3/17/03) )
6
 */
7

8
#include <iostream>
9
#include <sstream>
10
#include <dlfcn.h>
11

12
#include "trick/MemoryManager.hh"
13

14
/* This routine only returns the size if ptr points to the beginning of the allocation area */
15
int Trick::MemoryManager::add_shared_library_symbols(const char * file_name) {
×
16

17
    void * new_handle ;
18

19
    new_handle = dlopen( file_name , RTLD_LAZY ) ;
×
20
    if ( new_handle != NULL ) {
×
21
        dlhandles.push_back(new_handle) ;
×
22
    } else {
23
        std::stringstream message;
×
24
        message << "add_shared_library_symbols could not find library file: \"" << file_name << "\".";
×
25
        emitError(message.str());
×
26
    }
×
27

28
    return 0 ;
×
29
}
30

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