diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-05-07 13:54:35 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-05-07 13:54:35 +0200 |
commit | 6911aed99b5a5bd50eecd6864d1106088d4f2de3 (patch) | |
tree | 180bb1502f084441d5258782116d6d03a812baa7 /ffi | |
parent | b0c3d225a29b33af983cd7da17d1d5a0a780eeb6 (diff) |
openpgp-ffi: Remove '#include <error.h>' from doctests.
Diffstat (limited to 'ffi')
-rw-r--r-- | ffi/tests/c-tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ffi/tests/c-tests.rs b/ffi/tests/c-tests.rs index 71e6fa9c..3949c539 100644 --- a/ffi/tests/c-tests.rs +++ b/ffi/tests/c-tests.rs @@ -265,6 +265,9 @@ fn run(ldpath: &Path, exe: &Path) -> io::Result<()> { fn wrap_with_main(test: &mut Vec<String>, offset: usize) { let needs_wrapping = ! has_main(test); + // Replace glibc-style error handling. + test.retain(|l| l != "#include <error.h>"); + let mut last_include = 0; for (n, line) in test.iter().enumerate() { if line.starts_with("#include") { |