-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
If there is a global thread-local variable in the project, then generated tests cannot be run.
Example
__thread int thread_local_id;
void set_id(int id) {
thread_local_id = id + 5;
}
To Reproduce
Steps to reproduce the behavior:
- Copy the example above to your project
- Generate tests for some function
- Try to run generated tests
Expected behavior
Tests are supposed to be executed successfully.
Actual behavior
Tests cannot be built and executed.
Visual proofs (screenshots, logs)
/home/utbot/UTBotCpp/integration-tests/c-example/utbot_tests/makefiles/lib/keywords/../../../../utbot_tests/wrapper/lib/keywords/qualifiers_wrapper.c:7:61: error: initializer element is not a compile-time constant
__thread int (*thread_local_id_lib_keywords_qualifiers_c) = &thread_local_id;
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done