We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a909b96 commit 228e648Copy full SHA for 228e648
tests/test-one.sh
@@ -23,6 +23,9 @@ TEST_BINDINGS_BINARY=$(mktemp -t bindings.XXXXXX)
23
24
FLAGS="$(grep "// bindgen-flags: " "$TEST" || echo)"
25
FLAGS="${FLAGS/\/\/ bindgen\-flags:/}"
26
+# Prepend the default flags added in test.rs's `create_bindgen_builder`.
27
+FLAGS="--no-unstable-rust --with-derive-default --raw-line '' --raw-line '#![allow(non_snake_case)]' --raw-line '' $FLAGS"
28
+
29
30
eval ./target/debug/bindgen \
31
"\"$TEST\"" \
@@ -52,6 +55,7 @@ echo
52
55
53
56
EXPECTED=${TEST/headers/expectations\/tests}
54
57
EXPECTED=${EXPECTED/.hpp/.rs}
58
+EXPECTED=${EXPECTED/.h/.rs}
59
60
# Don't exit early if there is a diff.
61
diff -U8 "$EXPECTED" "$BINDINGS" || true
0 commit comments