49 #ifndef CUNIT_CUERROR_H_SEEN
50 #define CUNIT_CUERROR_H_SEEN
108 #include "CUnit/CUnit.h"
169 #ifdef CUNIT_BUILD_TESTS
170 void test_cunit_CUError(
void);
193 #ifdef USE_DEPRECATED_CUNIT_NAMES
195 #define get_error() CU_get_error_msg()
CU_EXPORT CU_ErrorAction CU_get_error_action(void)
Retrieves the current framework error action code.
Definition: CUError.c:98
CU_ErrorAction
CUnit error action codes.
Definition: CUError.h:100
CU_EXPORT void CU_set_error(CU_ErrorCode error)
Sets the CUnit framework error code.
Definition: CUError.c:63
CU_ErrorCode
CUnit error codes.
Definition: CUError.h:62
CU_EXPORT const char * CU_get_error_msg(void)
Retrieves a message corresponding to the current framework error code.
Definition: CUError.c:86
CU_EXPORT CU_ErrorCode CU_get_error(void)
Retrieves the current CUnit framework error code.
Definition: CUError.c:80
CU_EXPORT void CU_set_error_action(CU_ErrorAction action)
Sets the action to take when a framework error condition occurs.
Definition: CUError.c:92
@ CUEA_ABORT
The application should exit() when an error conditions occurs.
Definition: CUError.h:103
@ CUEA_FAIL
Runs should be stopped when an error condition occurs.
Definition: CUError.h:102
@ CUEA_IGNORE
Runs should be continued when an error condition occurs (if possible).
Definition: CUError.h:101
@ CUE_NOREGISTRY
Test registry not initialized.
Definition: CUError.h:68
@ CUE_NOSUITE
A required CU_pSuite pointer was NULL.
Definition: CUError.h:72
@ CUE_SCLEAN_FAILED
Suite cleanup failed.
Definition: CUError.h:75
@ CUE_SINIT_FAILED
Suite initialization failed.
Definition: CUError.h:74
@ CUE_DUP_TEST
Duplicate test case name not allowed.
Definition: CUError.h:82
@ CUE_NOMEMORY
Memory allocation failed.
Definition: CUError.h:65
@ CUE_DUP_SUITE
Duplicate suite name not allowed.
Definition: CUError.h:76
@ CUE_SUITE_INACTIVE
Test run initiated for an inactive suite.
Definition: CUError.h:77
@ CUE_REGISTRY_EXISTS
Attempt to CU_set_registry() without CU_cleanup_registry().
Definition: CUError.h:69
@ CUE_TEST_INACTIVE
Test run initiated for an inactive test.
Definition: CUError.h:84
@ CUE_FCLOSE_FAILED
An error occurred closing a file.
Definition: CUError.h:88
@ CUE_FOPEN_FAILED
An error occurred opening a file.
Definition: CUError.h:87
@ CUE_NO_TESTNAME
Required CU_Test name not provided.
Definition: CUError.h:81
@ CUE_TEST_NOT_IN_SUITE
Test not registered in specified suite.
Definition: CUError.h:83
@ CUE_NO_SUITENAME
Required CU_Suite name not provided.
Definition: CUError.h:73
@ CUE_BAD_FILENAME
A bad filename was requested (NULL, empty, nonexistent, etc.).
Definition: CUError.h:89
@ CUE_WRITE_ERROR
An error occurred during a write to a file.
Definition: CUError.h:90
@ CUE_NOTEST
A required CU_pTest or CU_TestFunc pointer was NULL.
Definition: CUError.h:80
@ CUE_SUCCESS
No error condition.
Definition: CUError.h:64