mdbx-tests: add osal_removefile().

Change-Id: Ifdacd1f799e3ed12f6b83bcdef0effbc0c41011c
This commit is contained in:
Leonid Yuriev
2018-11-04 18:57:24 +03:00
committed by Leo Yuriev
parent 2770e193b6
commit 12174187e8
3 changed files with 12 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* Copyright 2017-2018 Leonid Yuriev <leo@yuriev.ru>
* and other libmdbx authors: please see AUTHORS file.
* All rights reserved.
@@ -301,3 +301,7 @@ std::string osal_tempdir(void) {
return "/dev/shm/";
return "";
}
int osal_removefile(const std::string &pathname) {
return unlink(pathname.c_str()) ? errno : MDBX_SUCCESS;
}