Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • libxcb libxcb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • lib
  • libxcblibxcb
  • Merge requests
  • !6

tests: Support Check 0.13.0 API

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged A. Wilcox requested to merge awilfox/libxcb:master into master Dec 24, 2019
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 2

libxcb test suite does not build properly when using Check 0.13.0:

check_all.c: In function ‘suite_add_test’:
check_all.c:7:2: error: passing argument 2 of ‘_tcase_add_test’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  tcase_add_test(tc, tf);
  ^~~~~~~~~~~~~~
In file included from check_suites.h:1,
                 from check_all.c:2:
/usr/include/check.h:331:69: note: expected ‘const TTest *’ {aka ‘const struct TTest *’} but argument is of type ‘TFun’ {aka ‘void (*)(int)’}
 CK_DLL_EXP void CK_EXPORT _tcase_add_test(TCase * tc, const TTest * ttest,
                                                       ~~~~~~~~~~~~~~^~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:666: check_all.o] Error 1

With this patch, it does build properly.

Edited Feb 21, 2020 by A. Wilcox
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master