Browse Source

unittest in main Makefile

async_key_management
vb 8 years ago
parent
commit
d70a32af02
2 changed files with 6 additions and 3 deletions
  1. +3
    -0
      Makefile
  2. +3
    -3
      src/platform_windows.cpp

+ 3
- 0
Makefile View File

@ -18,6 +18,9 @@ clean:
test: all
$(MAKE) -C test test
unittest: all
$(MAKE) -C test unittest
package: clean
cd .. ; COPYFILE_DISABLE=true tar cjf pEpEngine.tar.bz2 pEpEngine


+ 3
- 3
src/platform_windows.cpp View File

@ -166,21 +166,21 @@ void *dlsym(void *handle, const char *symbol) {
return (void *) (intptr_t) GetProcAddress((HMODULE) handle, symbol);
}
const char *windoze_local_db() {
const char *windoze_local_db(void) {
static string path;
if (path.length() == 0)
path = managementPath("%LOCALAPPDATA%\\pEp", "management.db");
return path.c_str();
}
const char *windoze_system_db() {
const char *windoze_system_db(void) {
static string path;
if (path.length() == 0)
path = managementPath("%ALLUSERSPROFILE%\\pEp", "system.db");
return path.c_str();
}
const char *gpg_conf()
const char *gpg_conf(void)
{
static string path;
if (path.length() == 0)


Loading…
Cancel
Save