mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
blocklist_driver unit test: also check gl version
This commit is contained in:
parent
81a11532c5
commit
d04f2cf962
|
@ -2,12 +2,31 @@
|
|||
|
||||
#include <engine/client/blocklist_driver.h>
|
||||
|
||||
TEST(BlocklistDriver, Valid)
|
||||
TEST(BlocklistDriver, Valid1)
|
||||
{
|
||||
int Major, Minor, Patch;
|
||||
int Major = -1, Minor = -1, Patch = -1;
|
||||
EXPECT_STREQ(ParseBlocklistDriverVersions("Intel", "Build 26.20.100.7810", Major, Minor, Patch), "This Intel driver version can cause crashes, please update it to a newer version.");
|
||||
EXPECT_EQ(Major, 2);
|
||||
EXPECT_EQ(Minor, 0);
|
||||
EXPECT_EQ(Patch, 0);
|
||||
}
|
||||
|
||||
TEST(BlocklistDriver, Valid2)
|
||||
{
|
||||
int Major = -1, Minor = -1, Patch = -1;
|
||||
EXPECT_STREQ(ParseBlocklistDriverVersions("Intel", "Build 26.20.100.7926", Major, Minor, Patch), "This Intel driver version can cause crashes, please update it to a newer version.");
|
||||
EXPECT_EQ(Major, 2);
|
||||
EXPECT_EQ(Minor, 0);
|
||||
EXPECT_EQ(Patch, 0);
|
||||
}
|
||||
|
||||
TEST(BlocklistDriver, Valid3)
|
||||
{
|
||||
int Major = -1, Minor = -1, Patch = -1;
|
||||
EXPECT_STREQ(ParseBlocklistDriverVersions("Intel", "Build 26.20.100.7985", Major, Minor, Patch), "This Intel driver version can cause crashes, please update it to a newer version.");
|
||||
EXPECT_EQ(Major, 2);
|
||||
EXPECT_EQ(Minor, 0);
|
||||
EXPECT_EQ(Patch, 0);
|
||||
}
|
||||
|
||||
TEST(BlocklistDriver, Invalid)
|
||||
|
|
Loading…
Reference in a new issue