summaryrefslogtreecommitdiff
path: root/src/codegen/helpers.rs
diff options
context:
space:
mode:
authorChristian Legnitto <christian@legnitto.com>2019-01-08 10:26:57 -0800
committerChristian Legnitto <christian@legnitto.com>2019-01-16 17:22:35 -0800
commitebc18747c40cdd911b216165e0a06be489394073 (patch)
tree9b865ba082fad056a61434301265ebd417aa8e23 /src/codegen/helpers.rs
parentab538ee8d9d456bad7b828ac6402d87249c63173 (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