diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-05-14 21:39:09 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-05-15 09:30:59 +0200 |
| commit | 5138856a72fc009ec799cb935d9117e3bd72f16a (patch) | |
| tree | fb4713ece697eebf87c57acde6c4bc50f6627471 /src/Module.zig | |
| parent | 1bdcbd18ae1f312748c9909db98532a8dfd006eb (diff) | |
| download | zig-5138856a72fc009ec799cb935d9117e3bd72f16a.tar.gz zig-5138856a72fc009ec799cb935d9117e3bd72f16a.zip | |
test harness: Set filename on error return
While calling `next` an error can occur while parsing the file.
However, we don't set the filename that is currently being processed, until `next` completed successfully.
This means that for invalid test names, the wrong filename was being displayed in the panic message.
The fix is to retrieve the correct filename when an error occurs and then setting the filename appropriately.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
