diff options
author | Christian Legnitto <christian@legnitto.com> | 2019-01-08 10:26:57 -0800 |
---|---|---|
committer | Christian Legnitto <christian@legnitto.com> | 2019-01-16 17:22:35 -0800 |
commit | ebc18747c40cdd911b216165e0a06be489394073 (patch) | |
tree | 9b865ba082fad056a61434301265ebd417aa8e23 /src/codegen/helpers.rs | |
parent | ab538ee8d9d456bad7b828ac6402d87249c63173 (diff) |
Add `BINDGEN_OVERWRITE_EXPECTED` for recording tests
Currently when tests are run all expectations are overwritten.
This makes it hard to debug a failing test, as every time one
reruns `cargo test` the expectation is updated and subsequently passes.
With this change we now check the `BINDGEN_OVERWRITE_EXPECTED`
env variable. If set, we overwrite the expectation. If not,
the contents stay the same and the test continues to fail.
Diffstat (limited to 'src/codegen/helpers.rs')
0 files changed, 0 insertions, 0 deletions