From 6911aed99b5a5bd50eecd6864d1106088d4f2de3 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 7 May 2019 13:54:35 +0200 Subject: openpgp-ffi: Remove '#include ' from doctests. --- openpgp-ffi/tests/c-tests.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openpgp-ffi') diff --git a/openpgp-ffi/tests/c-tests.rs b/openpgp-ffi/tests/c-tests.rs index 6a2d04e0..050198f5 100644 --- a/openpgp-ffi/tests/c-tests.rs +++ b/openpgp-ffi/tests/c-tests.rs @@ -264,6 +264,9 @@ fn run(ldpath: &Path, exe: &Path) -> io::Result<()> { fn wrap_with_main(test: &mut Vec, offset: usize) { let needs_wrapping = ! has_main(test); + // Replace glibc-style error handling. + test.retain(|l| l != "#include "); + let mut last_include = 0; for (n, line) in test.iter().enumerate() { if line.starts_with("#include") { -- cgit v1.2.3