aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/tests')
-rw-r--r--src/glx/tests/create_context_unittest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glx/tests/create_context_unittest.cpp b/src/glx/tests/create_context_unittest.cpp
index d19271b47ef..a2590589db2 100644
--- a/src/glx/tests/create_context_unittest.cpp
+++ b/src/glx/tests/create_context_unittest.cpp
@@ -172,6 +172,15 @@ TEST_F(glXCreateContextAttribARB_test, NULL_display_returns_None)
EXPECT_EQ(0, fake_glx_context::contexts_allocated);
}
+TEST_F(glXCreateContextAttribARB_test, NULL_fbconfig_returns_None)
+{
+ GLXContext ctx =
+ glXCreateContextAttribsARB(this->dpy, NULL, 0, False, NULL);
+
+ EXPECT_EQ(None, ctx);
+ EXPECT_EQ(0, fake_glx_context::contexts_allocated);
+}
+
TEST_F(glXCreateContextAttribARB_test, NULL_screen_returns_None)
{
delete psc;