Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set -DNDEBUG for travis debug builds. #199

Merged
merged 1 commit into from
Jan 26, 2017
Merged

Set -DNDEBUG for travis debug builds. #199

merged 1 commit into from
Jan 26, 2017

Commits on Jan 26, 2017

  1. Set -DNDEBUG for travis debug builds.

    Within the sysdig code there are several ASSERTS() that can occur for
    error paths that aren't truly critical, such as:
    
    17:33:52 DEBUG| [stderr] falco: /home/travis/build/draios/sysdig/userspace/libsinsp/parsers.cpp:1657: static void sinsp_parser::parse_openat_dir(sinsp_evt*, char*, int64_t, std::string*): Assertion `false' failed.
    
    Looking at the code, it's not a truly fatal error, just an inability to
    find fd information:
    
    ----
         if(evt->m_fdinfo == NULL)
         {
                 ASSERT(false);
                 *sdir = "<UNKNOWN>";
         }
    ----
    
    When running regression tests in travis, we don't want these ASSERTs to
    cause falco to exit.
    
    To allow this, in CMakeLists.txt only set DRAIOS_DEBUG_FLAGS if it
    wasn't already set, and in travis's cmake, add -DNDEBUG to
    DRAIOS_DEBUG_FLAGS.
    mstemm committed Jan 26, 2017
    Configuration menu
    Copy the full SHA
    9285aa5 View commit details
    Browse the repository at this point in the history