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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

firewave
Copy link
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
@@ -652,24 +659,24 @@ class TestLeakAutoVar : public TestFixture {
check("void f(char* old, char* value, size_t len) {\n"
" char *str = strdup(value);\n"
" memcpy(old, str, len);\n"
"}\n", &s);
"}\n", dinit(CheckOptions, $.cpp = true, $.s = &s));
Copy link
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
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
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.

1 participant