@@ -289,8 +289,16 @@ igt_main
igt_require(kmstest_get_vblank(fd, pipe, 0));
}
+/*
+ * Has to be here and not in (or around) test_invalid_buffer() to work around
+ * a gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98512.
+ */
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#pragma GCC diagnostic ignored "-Wstringop-overflow="
igt_subtest("invalid-buffer")
test_invalid_buffer(fd);
+#pragma GCC diagnostic pop
igt_subtest("fault-buffer")
test_fault_buffer(fd, pipe);