summaryrefslogtreecommitdiff
path: root/test/raidfile/testraidfile.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2017-06-18 18:56:08 +0000
committerChris Wilson <chris+github@qwirx.com>2017-06-22 20:28:06 +0100
commit6a04b0abd728da5211e6702b1d42aef95c02d8da (patch)
treebc8ec9cb1f7aa1783b73096f6e4a54c96133cb90 /test/raidfile/testraidfile.cpp
parentd8422a8b053b62c67e5fe2e861a09d2c792b657a (diff)
Fix intercept of SYS_open on platforms that only have SYS_openat (e.g. arm64)
Diffstat (limited to 'test/raidfile/testraidfile.cpp')
-rw-r--r--test/raidfile/testraidfile.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/raidfile/testraidfile.cpp b/test/raidfile/testraidfile.cpp
index c8150387..d771f23d 100644
--- a/test/raidfile/testraidfile.cpp
+++ b/test/raidfile/testraidfile.cpp
@@ -25,6 +25,7 @@
#include "RaidFileException.h"
#include "RaidFileRead.h"
#include "Guards.h"
+#include "intercept.h"
#include "MemLeakFindOn.h"
@@ -37,14 +38,6 @@
#define TRF_CAN_INTERCEPT
#endif
-
-#ifdef TRF_CAN_INTERCEPT
-// function in intercept.cpp for setting up errors
-void intercept_setup_error(const char *filename, unsigned int errorafter, int errortoreturn, int syscalltoerror);
-bool intercept_triggered();
-void intercept_clear_setup();
-#endif
-
// Nice random data for testing written files
class R250 {
public: