Skip to content

testrunner: cleaned up tests by using objects to pass the options#7189

Merged
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:test-unused-opts
Jan 23, 2025
Merged

testrunner: cleaned up tests by using objects to pass the options#7189
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:test-unused-opts

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Jan 7, 2025

No description provided.

@firewave firewave marked this pull request as draft January 7, 2025 14:02
@firewave

This comment was marked as outdated.

@firewave firewave changed the title TestUnusedFunctions: cleaned up by using an object to pass the options testrunner: cleaned up tests by using objects to pass the options Jan 8, 2025
@firewave firewave force-pushed the test-unused-opts branch 2 times, most recently from f5d8fb0 to 3d91d31 Compare January 14, 2025 12:52
Comment thread test/testleakautovar.cpp
" char *str = strdup(value);\n"
" memcpy(old, str, len);\n"
"}\n", &s);
"}\n", dinit(CheckOptions, $.cpp = true, $.s = &s));
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was never using the settings.

@firewave
Copy link
Copy Markdown
Collaborator Author

There were two more test cases which were passing the wrong parameters but I cannot find them anymore. I thought I had them in a different since I wanted to put those into a separate PR.

There are also a few really big files I did not change yet.

@firewave firewave marked this pull request as ready for review January 14, 2025 13:14
@firewave firewave merged commit 2995c4b into cppcheck-opensource:main Jan 23, 2025
@firewave firewave deleted the test-unused-opts branch January 23, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants