From ebb581c2200b8adc3436cdebc5bb8090810383a0 Mon Sep 17 00:00:00 2001 From: Sophie Winter Date: Sun, 1 Sep 2024 16:02:22 -0700 Subject: [PATCH] Make tests compatible with new libwayland format --- test/integration-tests/test-set-monitor.c | 2 +- test/run-integration-test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration-tests/test-set-monitor.c b/test/integration-tests/test-set-monitor.c index a397a28..b175e3e 100644 --- a/test/integration-tests/test-set-monitor.c +++ b/test/integration-tests/test-set-monitor.c @@ -4,7 +4,7 @@ static GtkWindow* window; static void callback_0() { - EXPECT_MESSAGE(zwlr_layer_shell_v1 .get_layer_surface wl_output@); + EXPECT_MESSAGE(zwlr_layer_shell_v1 .get_layer_surface wl_output); window = create_default_window(); gtk_layer_init_for_window(window); ASSERT_EQ(g_list_model_get_n_items(gdk_display_get_monitors(gdk_display_get_default())), 1, "%d"); diff --git a/test/run-integration-test.py b/test/run-integration-test.py index ff59364..b392aad 100755 --- a/test/run-integration-test.py +++ b/test/run-integration-test.py @@ -224,7 +224,7 @@ def verify_result(lines: List[str]): elif line.startswith('DONT_EXPECT: '): negative_assertions.append(line.split()[1:]) set_expectation = True - elif line.startswith('[') and line.endswith(')') and '@' in line: + elif line.startswith('[') and line.endswith(')') and ('@' in line or '#' in line): if assertions and line_contains(line, assertions[0]): assertions = assertions[1:] for negative_assertion in negative_assertions: