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

Semantic Analyser Tests: Partial conversion to test_error() #3066

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

ajor
Copy link
Member

@ajor ajor commented Mar 15, 2024

This PR converts the first few and the last few tests in semantic_analyser.cpp over to checking error messages on failure.

test("iter:task,iter:task_file { 1 }", 1);
test("iter:task,iter:task_vma { 1 }", 1);
test("iter:task,f:func_1 { 1 }", 1);
test("iter:task { 1 }");
Copy link
Member Author

Choose a reason for hiding this comment

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

A few of these test cases were just checking the exact same thing for each attachment point, so weren't giving us any extra test coverage. Deleted them to make my life easier

Also delete some redundant test cases, which checked the same conditions
for different iterator probes.
@ajor ajor marked this pull request as ready for review March 18, 2024 15:35
@ajor ajor merged commit 0725f4c into bpftrace:master Mar 20, 2024
19 checks passed
@ajor ajor deleted the sema-tests-cleanup2 branch March 20, 2024 15:20
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.

None yet

2 participants