Skip to content

GHA MacOS builders fail cmocka unit tests #938

@cron2

Description

@cron2

seems Github has updated cmocka version and now we fail with

  CC       ../../../src/openvpn/misc_testdriver-win32-util.o
  CC       ../../../src/openvpn/misc_testdriver-platform.o
  CC       ../../../src/openvpn/misc_testdriver-list.o
  CC       options_parse_testdriver-test_options_parse.o
test_options_parse.c:47:5: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror,-Wdeprecated-declarations]
  CC       options_parse_testdriver-mock_msg.o
    check_expected(p);
    ^
/opt/homebrew/Cellar/cmocka/2.0.0/include/cmocka.h:4576:9: note: expanded from macro 'check_expected'
        CMOCKA_DEPRECATION_WARNING(                           \
        ^
/opt/homebrew/Cellar/cmocka/2.0.0/include/cmocka.h:219:9: note: expanded from macro 'CMOCKA_DEPRECATION_WARNING'
        cmocka_macro cmocka_deprecated_var __attribute__((unused)) = 0; \
        ^
test_options_parse.c:47:5: note: 'cmocka_macro' has been explicitly marked deprecated here
/opt/homebrew/Cellar/cmocka/2.0.0/include/cmocka.h:4576:9: note: expanded from macro 'check_expected'
        CMOCKA_DEPRECATION_WARNING(                           \
        ^
/opt/homebrew/Cellar/cmocka/2.0.0/include/cmocka.h:218:49: note: expanded from macro 'CMOCKA_DEPRECATION_WARNING'
        typedef int cmocka_macro __attribute__((deprecated(msg)));      \
                                                ^
test_options_parse.c:48:5: error: 'cmocka_macro' is deprecated: check_expected: use check_expected_int or check_expected_uint instead [-Werror,-Wdeprecated-declarations]
    check_expected(is_inline);
    ^
/opt/homebrew/Cellar/cmocka/2.0.0/include/cmocka.h:4576:9: note: expanded from macro 'check_expected'
        CMOCKA_DEPRECATION_WARNING(                           \
        ^

see https://github.com/OpenVPN/openvpn/actions/runs/20192052422

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions