Skip to content

Fix missing FAIL diagnostic reporting in codegen tests#1925

Open
modernzju wants to merge 1 commit into
hyperledger-solang:mainfrom
modernzju:main
Open

Fix missing FAIL diagnostic reporting in codegen tests#1925
modernzju wants to merge 1 commit into
hyperledger-solang:mainfrom
modernzju:main

Conversation

@modernzju

Copy link
Copy Markdown

Summary

Fix the codegen test harness to report the unmatched // FAIL: directive using current_fail instead of current_check.

The previous code indexed into fails with current_check, which can point at the wrong entry or panic with an unrelated index when a FAIL expectation is not found. This change reports the actual missing FAIL expectation and includes the testcase path, matching the existing CHECK failure output style.

Testing

  • cargo fmt --check
  • git diff --check

-cargo test --test codegen

Signed-off-by: modernzju <modernzju@outlook.com>
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