summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-04-21 11:55:07 +0000
committerChris Wilson <chris+github@qwirx.com>2007-04-21 11:55:07 +0000
commitb07526217a86b350296bcbf8cac6388f679efc17 (patch)
tree2498965d54d214a2a271ccd5f41783d82a45f1b1 /test
parent8e83d6c0b8eafcad71d006f257a9f54a7565c75a (diff)
Compile fix, comment out set_file_time helper function on non-Win32
platforms (refs #3)
Diffstat (limited to 'test')
-rw-r--r--test/bbackupd/testbbackupd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index fcc2ad47..f7796403 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -571,6 +571,7 @@ void sync_and_wait()
TestRemoteProcessMemLeaks("bbackupctl.memleaks");
}
+#ifdef WIN32
bool set_file_time(const char* filename, FILETIME creationTime,
FILETIME lastModTime, FILETIME lastAccessTime)
{
@@ -585,6 +586,7 @@ bool set_file_time(const char* filename, FILETIME creationTime,
TEST_THAT(CloseHandle(handle));
return success;
}
+#endif
void intercept_setup_delay(const char *filename, unsigned int delay_after,
int delay_ms, int syscall_to_delay);