Skip to content

Commit 592eed3

Browse files
gtk-macros: Guard tests requiring xml_validation
1 parent 87d1685 commit 592eed3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gtk4-macros/tests/compile.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#[test]
44
fn failures() {
55
let t = trybuild2::TestCases::new();
6+
#[cfg(feature = "xml_validation")]
67
t.compile_fail_check_sub(
78
"tests/compile-fail/composite-template-bad-xml.rs",
89
"error: Failed reading template XML",
@@ -19,6 +20,7 @@ fn failures() {
1920
"tests/compile-fail/composite-template-missing-fq-child-attr.rs",
2021
"error: field `label` with type `TemplateChild` possibly missing #[template_child] attribute",
2122
);
23+
#[cfg(feature = "xml_validation")]
2224
t.compile_fail_check_sub(
2325
"tests/compile-fail/composite-template-missing-id.rs",
2426
"error: Template child with id `label` not found in template XML",

0 commit comments

Comments
 (0)