Function run

Summary

#include <include/internal/catch_session.h>

(1) template <typename CharT>
    int run(int argc, CharT const *const argv[])

(2) int run()

Function overload

Synopsis

#include <include/internal/catch_session.h>

template <typename CharT>
int run(int argc, CharT const *const argv[])

Description

No description yet.

Mentioned in

Source

Lines 35-43 in include/internal/catch_session.h.

template<typename CharT>
int run(int argc, CharT const * const argv[]) {
    if (m_startupExceptions)
        return 1;
    int returnCode = applyCommandLine(argc, argv);
    if (returnCode == 0)
        returnCode = run();
    return returnCode;
}

Synopsis

#include <include/internal/catch_session.h>

int run()

Description

No description yet.

Mentioned in

Source

Lines 246-257 in include/internal/catch_session.cpp. Line 45 in include/internal/catch_session.h.

int Session::run() {
    if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeStart ) != 0 ) {
        Catch::cout() << "...waiting for enter/ return before starting" << std::endl;
        static_cast<void>(std::getchar());
    }
    int exitCode = runInternal();
    if( ( m_configData.waitForKeypress & WaitForKeypress::BeforeExit ) != 0 ) {
        Catch::cout() << "...waiting for enter/ return before exiting, with code: " << exitCode << std::endl;
        static_cast<void>(std::getchar());
    }
    return exitCode;
}





Add Discussion as Guest

Log in