Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTBot cannot execute tests if a directory name is the same as a filename without extensions #626

Closed
IDKWNTCMF opened this issue Aug 18, 2023 · 0 comments · Fixed by #625
Closed
Labels
bug Something isn't working

Comments

@IDKWNTCMF
Copy link
Collaborator

Description
If some filename f without extensions is the same as some directory name d, then UTBot will create executable for file f with the same path as a directory for recompiled files from d, because of this generated tests cannot be executed.

To Reproduce
Steps to reproduce the behavior:

  1. Generate tests for libyang projects (file src/plugins_exts.c and directory src/plugins_exts)
  2. Try to run generated tests

Expected behavior
Tests are supposed to be executed.

Actual behavior
Error while trying to create directory.

Visual proofs (screenshots, logs)

mkdir: cannot create directory '/home/utbot/libyang/utbot_tests/makefiles/src/plugins_exts/../../../../build/utbot_files/utbot_build/recompiled/src/plugins_exts': File exists
/home/utbot/libyang/utbot_tests/makefiles/src/plugins_exts/../../../../utbot_tests/makefiles/src/plugins_exts/__metadata_shared.mk:376: recipe for target '/home/utbot/libyang/utbot_tests/makefiles/src/plugins_exts/../../../../build/utbot_files/utbot_build/recompiled/src/plugins_exts/metadata_test' failed
make[1]: *** [/home/utbot/libyang/utbot_tests/makefiles/src/plugins_exts/../../../../build/utbot_files/utbot_build/recompiled/src/plugins_exts/metadata_test] Error 1
@IDKWNTCMF IDKWNTCMF added the bug Something isn't working label Aug 18, 2023
@IDKWNTCMF IDKWNTCMF linked a pull request Aug 18, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in UTBot C/C++ Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant