summaryrefslogtreecommitdiff
path: root/tests/tests.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-02-03 14:38:35 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-02-03 14:54:58 +0100
commit1ea12aa2dfbfcb27ef102ec8a001a3a05175004f (patch)
tree378b003ed04262a957238929501ea645adab9d64 /tests/tests.rs
parent892e2ec117f817d5a439dfb39104b2be4678cd0b (diff)
ir: Ignore constructors with bogus spellings.
Diffstat (limited to 'tests/tests.rs')
-rw-r--r--tests/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 93b8971b..0966f877 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -207,7 +207,7 @@ fn compare_generated_header(
expectation_file.write_all(actual.as_bytes())?;
}
- Err(Error::new(ErrorKind::Other, "Header and binding differ!"))
+ Err(Error::new(ErrorKind::Other, "Header and binding differ! Run with BINDGEN_OVERWRITE_EXPECTED=1 in the environment to automatically overwrite the expectation."))
}
fn create_bindgen_builder(header: &PathBuf) -> Result<Option<Builder>, Error> {