Skip to content

Changing name of function name in user code causes inability to run generated tests #543

@tyuldashev

Description

@tyuldashev

Created from this comment

To Reproduce
Steps to reproduce the behavior:

  1. Generate tests for some file
  2. Change name some function inside file from one name to another
  3. Regenerate tests
  4. Try to run them.

Adding new function to existing file for which already some tests are generated causes the same problem.

Expected behavior
Tests are generated and can be run.

Actual behavior
Run Tests fails with error (see pic below). Mentioned log contains following information.

image

/home/utbot/utbot_distr/2022.8.242/utbot_distr/debs-install/usr/bin/ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area'
/home/utbot/remote/SampleDocker2/tests/../tests/helloworld_dot_c_test.h:326: error: undefined reference to 'my_main3_helloworld_c'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
/home/utbot/remote/SampleDocker2/tests/../tests/__helloworld_shared.mk:28: recipe for target '/home/utbot/remote/SampleDocker2/tests/../build/utbot_build/recompiled/helloworld' failed
make[1]: *** [/home/utbot/remote/SampleDocker2/tests/../build/utbot_build/recompiled/helloworld] Error 1
/home/utbot/utbot_distr/2022.8.242/utbot_distr/debs-install/usr/bin/ld.gold: warning: Cannot export local symbol '__asan_extra_spill_area'
/home/utbot/remote/SampleDocker2/tests/../tests/helloworld_dot_c_test.h:326: error: undefined reference to 'my_main3_helloworld_c'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
/home/utbot/remote/SampleDocker2/tests/../tests/__helloworld_obj.mk:28: recipe for target '/home/utbot/remote/SampleDocker2/tests/../build/utbot_build/recompiled/helloworld' failed
make[1]: *** [/home/utbot/remote/SampleDocker2/tests/../build/utbot_build/recompiled/helloworld] Error 1
/home/utbot/remote/SampleDocker2/tests/helloworld.mk:46: recipe for target 'run' failed
make: *** [run] Error 2

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingverifiedBug fix is verified

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions