1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-03-02 03:40:21 +00:00

add basic tests for conf, database and run

This commit is contained in:
Oliver Giles
2018-01-26 13:07:02 +02:00
parent ae961b97cb
commit 5ff3bbe2bb
6 changed files with 247 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ Database::Statement::~Statement() {
bool Database::Statement::exec() {
return sqlite3_step(stmt) == SQLITE_OK;
return sqlite3_step(stmt) == SQLITE_DONE;
}
void Database::Statement::bindValue(int i, int e) {

View File

@@ -85,7 +85,7 @@ public:
std::string log;
pid_t pid;
int fd;
int procStatus;
int procStatus = 0;
std::unordered_map<std::string, std::string> params;
time_t queuedAt;