All checks were successful
CI Code / Check coding style (pull_request) Successful in 32s
CI Code / Check spelling (pull_request) Successful in 19s
CI Code / Linux (debian) (pull_request) Successful in 15m51s
CI Code / Linux (ubuntu) (pull_request) Successful in 15m58s
CI Code / Linux (arch) (pull_request) Successful in 16m8s
Temporarily removing CMOCKA_DISABLE_DEPRECATION_WARNINGS to demonstrate that tests fail on debian:testing (cmocka 2.0.1) without this fix.
22 lines
601 B
C
22 lines
601 B
C
/*
|
|
* Compatibility header for cmocka 1.x and 2.x
|
|
*
|
|
* cmocka 2.0 (released Dec 2025) deprecated several macros:
|
|
* - will_return() -> will_return_int() / will_return_ptr()
|
|
* - mock_type() -> mock_int() / mock_ptr_type()
|
|
* - check_expected() -> check_expected_int() / check_expected_ptr()
|
|
*
|
|
* This header disables deprecation warnings for backward compatibility
|
|
* with cmocka 1.x style code.
|
|
*/
|
|
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <setjmp.h>
|
|
|
|
/* NOTE: CMOCKA_DISABLE_DEPRECATION_WARNINGS removed to test CI failure */
|
|
|
|
#include <cmocka.h>
|