Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • cpl-plugin-xshoo cpl-plugin-xshoo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Debian Astro TeamDebian Astro Team
  • cpl-plugin-xshoocpl-plugin-xshoo
  • Merge requests
  • !2

Fix parallel build in hdrd/tests

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Frédéric Bonnard requested to merge frediz/cpl-plugin-xshoo:fix-parallel-build into master May 09, 2019
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

hdrl_multiiter-test and hdrl_frameiter-test use the same base names for their data with a pid suffix but remove all files without using the pid suffix :

char * fn = cpl_sprintf("frameiter%zu_%zd.fits", i, (intptr_t)getpid()); ... if (system("rm -f frameiter*fits")) {}

So potentially, in parallel builds, tests can remove the files from the other one which happens systematically to me, which leads to a sigsev. This fix removes only the pid suffixed .fits created by the current process.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-parallel-build