UnitTestBot / UTBotCpp

Tool that generates unit test by C/C++ source code, trying to reach all branches and maximize code coverage
Apache License 2.0
158 stars 27 forks source link

Some new paths can be unavailable #131

Open ladisgin opened 2 years ago

ladisgin commented 2 years ago

Some new paths in function createNewDirForFile from Paths.h. Can be unavailable. Example: file = /home/utbot/.opam/4.08.0/share/sail/lib/sail.c oldBase = /home/utbot/sail-riscv/c_emulator/SoftFloat-3e/build newBase = /home/utbot/tmp/UnitTestBot/sail-riscv result = home/.opam/4.08.0/share/sail/lib/sail.c result not in temp directory.

Problem arise because we use relative paths to build a temporary directory structure.

ladisgin commented 2 years ago

linked with issue-52

antipeon commented 2 years ago

createNewDirForFile has not been touched in issue-52