diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-10-25T19·51-0700 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-10-26T10·20+0000 |
commit | dc3543e0ca03b5954c4c740f984078f11e57b867 (patch) | |
tree | f5005669390f562df6e3f4bc7f7e3136457224cf /third_party/git/t/t4252/am-test-1-2 | |
parent | 8425c2016c9a29008cdec8414fc647b8076a7e34 (diff) |
feat(tvix/eval): include filename of failing test when failing r/5199
Unfortunately we have to mangle test case filenames into rust-valid symbols, since test-generator doesn't use `r#"..."` (deliberately?). This means that when a test fails, there's nothing on the console you can copy-and-paste in order to view/edit the code of the failing test case. This commit (partially) fixes it by including the unmangled name in the panic!() string. However failures due to panic!()s inside the vm (including deliberate panics due to panic!()-debugging) still won't display an unmangled filename. Maybe we should reconsider the use of test-generator? Change-Id: I2208a859ffab1264f17f48fd303ff5e19675967e Signed-off-by: Adam Joseph <adam@westernsemico.com> Reviewed-on: https://cl.tvl.fyi/c/depot/+/7092 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'third_party/git/t/t4252/am-test-1-2')
0 files changed, 0 insertions, 0 deletions