//============================================================================ // QP/C++ Real-Time Embedded Framework (RTEF) // Copyright (C) 2005 Quantum Leaps, LLC. All rights reserved. // // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial // // This software is dual-licensed under the terms of the open source GNU // General Public License version 3 (or any later version), or alternatively, // under the terms of one of the closed source Quantum Leaps commercial // licenses. // // The terms of the open source GNU General Public License version 3 // can be found at: // // The terms of the closed source Quantum Leaps commercial licenses // can be found at: // // Redistributions in source code must retain this top-level comment block. // Plagiarizing this software to sidestep the license obligations is illegal. // // Contact information: // // //============================================================================ //! @date Last updated on: 2022-06-13 //! @version Last updated for: @ref qpcpp_7_0_1 //! //! @file //! @brief "QUIT" QP Unit Internal Test #ifndef QUIT_HPP #define QUIT_HPP // macro to check an expectation #define VERIFY(cond_) ((cond_) \ ? (void)0 : QP::QUIT_fail_(#cond_, &Q_this_module_[0], __LINE__)) namespace QP { void TEST(char const *title); void QUIT_fail_(char const *cond, char const *module, int line); void onRunTests(void); // user-defined callback to run the tests } // namespace QP #include "qf_port.hpp" // QF/C++ port from the port directory #include "qassert.h" // QP embedded systems-friendly assertions #ifdef Q_SPY /* software tracing enabled? */ #include "qs_port.hpp" // QS/C port from the port directory #else #include "qs_dummy.hpp" // QS/C dummy (inactive) interface #endif #endif // QUIT_HPP