aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-18 03:20:06 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-18 03:20:06 +0300
commit01e95de886413c252ee1a419ed0a7c41435847e6 (patch)
treee001a71ef743285e75bf01409b33a4b42a37e7da /test
parentcmake: files are per-directory, not per-extension (diff)
downloadwinapi-common-01e95de886413c252ee1a419ed0a7c41435847e6.tar.gz
winapi-common-01e95de886413c252ee1a419ed0a7c41435847e6.zip
Process: add get_exe_path()
Diffstat (limited to 'test')
-rw-r--r--test/unit_tests/process.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit_tests/process.cpp b/test/unit_tests/process.cpp
index 1c87b27..0a6cb27 100644
--- a/test/unit_tests/process.cpp
+++ b/test/unit_tests/process.cpp
@@ -21,6 +21,11 @@ using namespace winapi::process;
BOOST_AUTO_TEST_SUITE(process_tests)
+BOOST_AUTO_TEST_CASE(get_exe_path) {
+ const auto path = Process::get_exe_path();
+ BOOST_TEST_MESSAGE("Executable path: " << path);
+}
+
BOOST_FIXTURE_TEST_CASE(echo, WithEchoExe) {
const CommandLine cmd_line{get_echo_exe(), {"1", "2", "3"}};
const auto process = Process::create(cmd_line);