Skip to content

auto_test/toxav_basic_test.c wrong assertion #1855

@sudden6

Description

@sudden6

In https://github.com/TokTok/c-toxcore/blob/master/auto_tests/toxav_basic_test.c#L87 the return value is checked agains -1 which is not defined according to https://github.com/TokTok/c-toxcore/blob/master/toxcore/tox.h#L1321 Possibly others are affected.

IMHO we should define the return value in the error case to UINT32_MAX, but at least the testcase needs to be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low prioritytestAdding missing tests, refactoring tests; no production code change

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions