Skip to content

Commit 487353e

Browse files
committed
fix(tests): the enum-header assertions belong INSIDE the linux guard
macOS and Windows failed while both Linux legs passed, and the cause was in this PR rather than in any package: the 1.49.1 enum-header includes were appended at the END of the file, past the `#endif` that closes `#ifdef __linux__`. So they compiled on platforms where the dependency is never fetched — the example gates it with `cfg(linux)` — and the scan failed before anything was built. Appending to a file is not the same as adding to it. Moved above the `#else`, where the rest of the test lives; verified it still passes on Linux.
1 parent 73052f4 commit 487353e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎tests/examples/wayland-protocols/tests/wayland-protocols.cpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ int main()
9393
return failures == 0 ? 0 : 1;
9494
}
9595

96-
#else
97-
98-
int main() { return 0; }
99-
100-
#endif
101-
10296
// ── 1.49.1: the enum headers upstream installs ───────────────────────────────
10397
//
10498
// `wayland-scanner enum-header` output, which this fork did not generate before
@@ -117,3 +111,9 @@ static_assert(XDG_TOPLEVEL_STATE_MAXIMIZED == 1,
117111
"xdg-shell-enum.h did not come from the scanner");
118112
static_assert(ZWP_TABLET_TOOL_V2_TYPE_PEN == 0x140,
119113
"tablet-v2-enum.h did not come from the scanner");
114+
115+
#else
116+
117+
int main() { return 0; }
118+
119+
#endif

0 commit comments

Comments
 (0)