Skip to content

C++ test false positive errors with non-Linux hosts #123

@feltech

Description

@feltech

What

C++ tests fail on non Linux hosts

Why

MacOS: the test "Deprecated specification causes deprecation compiler warning" fails, i.e. the CTest regex check of the build output cannot find the expected warning. Perhaps it's being optimised out?

Windows: unrecognised compiler flag -Wno-deprecated-declarations. We set this flag to prevent the main tests from failing (due to -Werror "warnings-as-error"). However, /wd4996 is the correct flag on Windows.

Unfortunately, enabling MacOS and Windows C++ tests is tricky, since we currently rely on a Docker build of OpenAssetIO for all C++ tests, and therefore only test Ubuntu. See OpenAssetIO/OpenAssetIO#1235 (and its parent issue).

However, the integration tests in the upstream OpenAssetIO repo do run on multiple OSes, which is what flagged these issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions