Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 859
    • Issues 859
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 35
    • Merge requests 35
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !1204

gtestutils: Add a new g_assert_no_errno() test macro

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Philip Withnall requested to merge pwithnall/glib:assert-no-errno into master Oct 31, 2019
  • Overview 12
  • Commits 2
  • Pipelines 4
  • Changes 4

This is for use in testing POSIX-style functions like rmdir(), which return an integer < 0 on failure, and return their error information in errno.

The new macro prints errno and g_strerror (errno) on failure.

Includes a unit test.

Signed-off-by: Philip Withnall withnall@endlessm.com

Edited Oct 31, 2019 by Philip Withnall
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: assert-no-errno