summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/backupdiff/difftestfiles.cpp1
-rw-r--r--test/bbackupd/testbbackupd.cpp2
-rw-r--r--test/common/testcommon.cpp2
-rw-r--r--test/raidfile/testraidfile.cpp1
4 files changed, 4 insertions, 2 deletions
diff --git a/test/backupdiff/difftestfiles.cpp b/test/backupdiff/difftestfiles.cpp
index 881876ca..33690f6b 100644
--- a/test/backupdiff/difftestfiles.cpp
+++ b/test/backupdiff/difftestfiles.cpp
@@ -10,6 +10,7 @@
#include "Box.h"
#include <string.h>
+#include <stdio.h>
#include "FileStream.h"
#include "PartialReadStream.h"
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index 91c883cc..d69741bb 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -87,7 +87,7 @@
// two cycles and a bit
#define TIME_TO_WAIT_FOR_BACKUP_OPERATION 12
-void wait_for_backup_operation(char* message)
+void wait_for_backup_operation(const char* message)
{
wait_for_operation(TIME_TO_WAIT_FOR_BACKUP_OPERATION, message);
}
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp
index da2133cd..e633969b 100644
--- a/test/common/testcommon.cpp
+++ b/test/common/testcommon.cpp
@@ -368,7 +368,7 @@ int test(int argc, const char *argv[])
// Leave timers initialised for rest of test.
// Test main() will cleanup after test finishes.
- static char *testfilelines[] =
+ static const char *testfilelines[] =
{
"First line",
"Second line",
diff --git a/test/raidfile/testraidfile.cpp b/test/raidfile/testraidfile.cpp
index f15fec27..530fb7f8 100644
--- a/test/raidfile/testraidfile.cpp
+++ b/test/raidfile/testraidfile.cpp
@@ -11,6 +11,7 @@
#include <fcntl.h>
#include <unistd.h>
+#include <stdio.h>
#include <errno.h>
#ifdef HAVE_SYSCALL