mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +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/shared/config.h>
|
||||
#include <game/server/scoreworker.h>
|
||||
#include <iostream>
|
||||
|
||||
#include <sqlite3.h>
|
||||
|
||||
char *CSaveTeam::GetString()
|
||||
{
|
||||
|
@ -37,6 +38,11 @@ protected:
|
|||
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)
|
||||
{
|
||||
ASSERT_FALSE(conn->Connect(aError, sizeof(aError))) << aError;
|
||||
|
|
Loading…
Reference in a new issue