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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user