Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 853
    • Issues 853
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • 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
  • !2885

tests/desktop-app-info: Use unique temporary paths for action files

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Marco Trevisan requested to merge 3v1n0/glib:test-actions-parallel-fix into main Sep 13, 2022
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 2

desktop-app-info test may fail when repeated with multiple concurrent processes because the actions test relies on checking the existence of in the shared build directory, so by doing something like:

 meson test -C _build desktop-app-info -t 0.3 --repeat 80

We may end up in timeout errors, because we are waiting for files that have been already deleted by other processes.

To avoid this, let's rely on writing the files on $G_TEST_TMPDIR env variable, that is always set and unique, given that we're using the G_TEST_OPTION_ISOLATE_DIRS test option.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: test-actions-parallel-fix