Skip to content

Tests segfault when /tmp/VMPC2000XL-test can't be written #322

Description

@izzyreal

I hit a case where I wasn't able to run tests, getting segfaults for all of them, because I was trying to run them as a normal user on a system that is also used as a CI/CD build agent. The build agent had already done a few builds, initializing /tmp/VMPC2000XL-test under its agent user name. Then when I tried to run the tests manually as a non-agent user, mpc::Mpc::init() was never invoked because TestMpc::initialize... couldn't actually perform fs::remove_all(testDocPath);.

One way forward would be to have CI/CD jobs clean up the dir in /tmp. Another would be for each test to create a different dir in temp (based on a UUID for example), but this would easily pollute the filesystem way too much.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions