nlsandler / writing-a-c-compiler-tests

Test cases for Writing a C Compiler
https://nostarch.com/writing-c-compiler
Other
172 stars 25 forks source link

Bad error message when testing intermediate stage #78

Closed nlsandler closed 2 months ago

nlsandler commented 2 months ago

The error message in validate_no_output is Found assembly file {assembly_file} for invalid program!, but we also call this function when testing intermediate stages with valid test programs. This needs to be updated to reflect that the program isn't necessarily invalid.

(See https://github.com/nlsandler/writing-a-c-compiler-tests/blob/main/test_framework/basic.py#L290)