Commit db92b54d authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[5074] Set environment variable for pid files within libkea-process tests.

parent 91e39181
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC") // Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
// //
// This Source Code Form is subject to the terms of the Mozilla Public // This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this // License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <log/logger_support.h> #include <log/logger_support.h>
#include <process/d2_log.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
int int
...@@ -13,6 +13,9 @@ main(int argc, char* argv[]) { ...@@ -13,6 +13,9 @@ main(int argc, char* argv[]) {
::testing::InitGoogleTest(&argc, argv); ::testing::InitGoogleTest(&argc, argv);
isc::log::initLogger(); isc::log::initLogger();
// Override --localstatedir value for PID files
setenv("KEA_PIDFILE_DIR", TEST_DATA_BUILDDIR, 1);
int result = RUN_ALL_TESTS(); int result = RUN_ALL_TESTS();
return (result); return (result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment