xmlconfig_test: add unit test for executable_regexp

Reviewed-by: Emma Anholt <emma@anholt.net>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13304>
This commit is contained in:
Qiang Yu
2021-10-13 11:15:22 +08:00
committed by Marge Bot
parent c7f481c615
commit 4098607870
4 changed files with 20 additions and 0 deletions
+10
View File
@@ -278,4 +278,14 @@ TEST_F(xmlconfig_test, drirc_engine_versioned)
EXPECT_EQ(driQueryOptioni(&cache, "mesa_drirc_option"), 5);
driDestroyOptionCache(&cache);
}
TEST_F(xmlconfig_test, drirc_exec_regexp)
{
driOptionCache cache = drirc_init("driver", "drm",
"app2v4",
NULL, 0,
NULL, 0);
EXPECT_EQ(driQueryOptioni(&cache, "mesa_drirc_option"), 7);
driDestroyOptionCache(&cache);
}
#endif