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 862
    • Issues 862
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • 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
  • !1731

Make more use of g_assert_no_errno()

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Simon McVittie requested to merge wip/smcv/assert-no-errno into master Oct 31, 2020
  • Overview 0
  • Commits 6
  • Pipelines 1
  • Changes 4
  • glib/tests/fileutils: Make more use of g_assert_no_errno()

    This commit is shared with !1724 (merged).

  • gio/tests/live-g-file: Use g_assert_no_errno()

  • gio/tests/appmonitor: Use g_assert_no_errno()

  • gio/tests/gsettings: Use g_assert_no_errno()

  • gio/tests/gsettings: Assert that g_chmod succeeds

  • gio/tests/gsettings: Assert that temporary directory ends up empty

    If there are stray files left over, g_rmdir() will fail with ENOTEMPTY.


Spun out from !1724 (merged) because I realised there were more places where we could have used g_assert_no_errno() (!1204 (merged)) than I had previously thought. The first commit is also in !1724 (merged).

The last two commits add new assertions. The others are just a better way to spell what we were already doing.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wip/smcv/assert-no-errno