mirror of
https://github.com/QuantumLeaps/qpc.git
synced 2025-01-28 07:03:10 +08:00
d0160c8c7b
major release 7.0.0 release candidate 1
61 lines
1.9 KiB
C
61 lines
1.9 KiB
C
/*============================================================================
|
|
* 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: <www.gnu.org/licenses/gpl-3.0>
|
|
*
|
|
* The terms of the closed source Quantum Leaps commercial licenses
|
|
* can be found at: <www.state-machine.com/licensing>
|
|
*
|
|
* Redistributions in source code must retain this top-level comment block.
|
|
* Plagiarizing this software to sidestep the license obligations is illegal.
|
|
*
|
|
* Contact information:
|
|
* <www.state-machine.com>
|
|
* <info@state-machine.com>
|
|
============================================================================*/
|
|
/*!
|
|
* @date Last updated on: 2021-12-23
|
|
* @version Last updated for: @ref qpc_7_0_0
|
|
*
|
|
* @file
|
|
* @brief "QUIT" QP Unit Internal Test
|
|
*/
|
|
#ifndef QUIT_H
|
|
#define QUIT_H
|
|
|
|
/* macro to check an expectation */
|
|
#define EXPECT(cond_) ((cond_) \
|
|
? (void)0 : QUIT_fail_(#cond_, &Q_this_module_[0], __LINE__))
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
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 */
|
|
|
|
#include "qf_port.h" /* QF/C port from the port directory */
|
|
#include "qassert.h" /* QP embedded systems-friendly assertions */
|
|
|
|
#ifdef Q_SPY /* software tracing enabled? */
|
|
#include "qs_port.h" /* QS/C port from the port directory */
|
|
#else
|
|
#include "qs_dummy.h" /* QS/C dummy (inactive) interface */
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* QUIT_H */
|