summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-03-29 09:10:35 +0200
committerNick Mathewson <nickm@torproject.org>2017-03-29 09:10:35 +0200
commit04f1ddaa2a33194ba861cc38f89f16fd076c63a6 (patch)
tree9f2234ca59449e4a150267e0e659c13d9e61233d /src
parentfc02b8cf7ae3518791f1bed18494582c99b5a592 (diff)
downloadtor-04f1ddaa2a33194ba861cc38f89f16fd076c63a6.tar.gz
tor-04f1ddaa2a33194ba861cc38f89f16fd076c63a6.zip
Fix utimbuf initialization in storagedir/cleaning test
Diffstat (limited to 'src')
-rw-r--r--src/test/test_storagedir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_storagedir.c b/src/test/test_storagedir.c
index 6678629df6..e7e3da67eb 100644
--- a/src/test/test_storagedir.c
+++ b/src/test/test_storagedir.c
@@ -220,7 +220,7 @@ test_storagedir_cleaning(void *arg)
time_t now = time(NULL);
struct utimbuf ub;
ub.actime = now;
- ub.modtime -= 1000;
+ ub.modtime = now - 1000;
for (i = 0; i < 8; ++i) {
char *f = NULL;
tor_asprintf(&f, "%s/%s", dirname, fns[i]);