diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2016-10-18 15:56:17 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2016-10-18 15:57:10 -0700 |
commit | 5ff5d5bef6e72655cbc15cfb3a11f5074462b195 (patch) | |
tree | 4dd949f8dcae1fddbda9a16037aad5d8a2525dd4 | |
parent | 294ca4d468fed0a613387c2dbba70d97373da505 (diff) |
Ensure that the bindgen executable is up-to-date when we run tests
-rw-r--r-- | tests/tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index b3d0e735..66e70859 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,3 +1,9 @@ +// We add this `extern crate` here to ensure that bindgen is up-to-date and +// rebuilt, even though we aren't using any of its types or functions here, only +// indirectly calling the executable. +#[allow(dead_code)] +extern crate bindgen; + use std::env; use std::fs; use std::io::Read; |