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

fixed #11883 - CTU path information from build dir was not being used #7202

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

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Jan 9, 2025

No description provided.

@firewave firewave changed the title refs #11883 - CTU path information from build dir was not being used fixed #11883 - CTU path information from build dir was not being used Jan 9, 2025
__test_addon_suppr(tmp_path, ['--suppress=misra-c2012-2.3:{}:3'.format(test_file)])
Copy link
Collaborator

@chrchr-github chrchr-github Jan 9, 2025

Choose a reason for hiding this comment

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

Shouldn't this be in whole-program_test.py? (referring to test_ctu_path_builddir)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Logically it does. But (at least in my book) the grouping of those tests is around the whole-program folder in the repo (similar to proj2, helloword, etc.).

But other_test.py should probably to be split up at some point as it just a dumping ground for random tests. But that is not something I am willing to spend any time on soon with all the pending stuff.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Weeell... You could add a file in whole-program instead of creating it on-the-fly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That would start another dumping ground. IMO we should only create physical files if necessary (headers, folders, ...) or if they have a certain complexity/size.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fair enough. I'd still prefer the new test in whole-program_test.py though.

Copy link
Owner

Choose a reason for hiding this comment

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

That would start another dumping ground.

One one side I also spontanously think all tests related to whole program analysis should be in the same test file. But I can understand your logic too.

IMO we should only create physical files if necessary

Certainly.

Copy link
Owner

Choose a reason for hiding this comment

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

It's not something you should do here in this PR.. it's just an observation.

The other_test.py has many tests related to suppressions and therefore I feel it would make sense to create a testfile for all suppression tests.


exitcode_1, stdout_1, stderr_1 = cppcheck(args)
print(stderr_1)
Copy link
Owner

Choose a reason for hiding this comment

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

Imho this print should be removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes - an accidental leftover. Will be removed in the follow-up.

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.

3 participants