diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 08:15:35 +0000 |
commit | f09848204fa5283d21ea43e262ee41aa578e1808 (patch) | |
tree | c62385d7adf209fa6a798635954d887f718fb3fb /src/daemon/unit_test.c | |
parent | Releasing debian version 1.46.3-2. (diff) | |
download | netdata-f09848204fa5283d21ea43e262ee41aa578e1808.tar.xz netdata-f09848204fa5283d21ea43e262ee41aa578e1808.zip |
Merging upstream version 1.47.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/daemon/unit_test.c')
-rw-r--r-- | src/daemon/unit_test.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/daemon/unit_test.c b/src/daemon/unit_test.c index e7a743603..0f15f67d7 100644 --- a/src/daemon/unit_test.c +++ b/src/daemon/unit_test.c @@ -1674,22 +1674,7 @@ int test_sqlite(void) { return 1; } - BUFFER *sql = buffer_create(ACLK_SYNC_QUERY_SIZE, NULL); - char *uuid_str = "0000_000"; - - buffer_sprintf(sql, TABLE_ACLK_ALERT, uuid_str); - rc = sqlite3_exec_monitored(db_mt, buffer_tostring(sql), 0, 0, NULL); - if (rc != SQLITE_OK) - goto error; - - buffer_free(sql); fprintf(stderr,"SQLite is OK\n"); - rc = sqlite3_close_v2(db_mt); + (void) sqlite3_close_v2(db_mt); return 0; -error: - rc = sqlite3_close_v2(db_mt); - fprintf(stderr,"SQLite statement failed: %s\n", buffer_tostring(sql)); - buffer_free(sql); - fprintf(stderr,"SQLite tests failed\n"); - return 1; } |