mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add sqliteversion test
This commit is contained in:
parent
3a2850b7f7
commit
41910ff5fd
|
@ -4,7 +4,8 @@
|
||||||
#include <engine/server/databases/connection.h>
|
#include <engine/server/databases/connection.h>
|
||||||
#include <engine/shared/config.h>
|
#include <engine/shared/config.h>
|
||||||
#include <game/server/scoreworker.h>
|
#include <game/server/scoreworker.h>
|
||||||
#include <iostream>
|
|
||||||
|
#include <sqlite3.h>
|
||||||
|
|
||||||
char *CSaveTeam::GetString()
|
char *CSaveTeam::GetString()
|
||||||
{
|
{
|
||||||
|
@ -37,6 +38,11 @@ protected:
|
||||||
char aError[256] = {};
|
char aError[256] = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
TEST_F(Score, SQLiteVersion)
|
||||||
|
{
|
||||||
|
ASSERT_GE(sqlite3_libversion_number(), 3025000) << "SQLite >= 3.25.0 required for Window functions";
|
||||||
|
}
|
||||||
|
|
||||||
TEST_F(Score, SaveScore)
|
TEST_F(Score, SaveScore)
|
||||||
{
|
{
|
||||||
ASSERT_FALSE(conn->Connect(aError, sizeof(aError))) << aError;
|
ASSERT_FALSE(conn->Connect(aError, sizeof(aError))) << aError;
|
||||||
|
|
Loading…
Reference in a new issue