diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-15 17:27:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-15 17:27:29 +0300 |
commit | b2436ef9390b9dddb9c010eec5caca40400f8c8b (patch) | |
tree | 43c356dfeb5060066b4bd4b64ea06b1615a07f85 /test | |
parent | WIP: add simple Process class (diff) | |
download | winapi-common-b2436ef9390b9dddb9c010eec5caca40400f8c8b.tar.gz winapi-common-b2436ef9390b9dddb9c010eec5caca40400f8c8b.zip |
rename utility "args" to "echo"
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 8 | ||||
-rw-r--r-- | test/echo.cpp (renamed from test/args.cpp) | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a46bf49..43b4d4d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,9 +1,9 @@ -add_executable(args args.cpp) -set_target_properties(args PROPERTIES OUTPUT_NAME winapi-common-test-args) +add_executable(echo echo.cpp) +set_target_properties(echo PROPERTIES OUTPUT_NAME winapi-common-test-echo) -install(TARGETS args RUNTIME DESTINATION bin) +install(TARGETS echo RUNTIME DESTINATION bin) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:args>" DESTINATION bin OPTIONAL) + install(FILES "$<TARGET_PDB_FILE:echo>" DESTINATION bin OPTIONAL) endif() add_subdirectory(unit_tests) diff --git a/test/args.cpp b/test/echo.cpp index 470819a..6d6e6df 100644 --- a/test/args.cpp +++ b/test/echo.cpp @@ -3,10 +3,12 @@ // For details, see https://github.com/egor-tensin/winapi-common. // Distributed under the MIT License. +// Simple UTF-16 echo. + #include <iostream> int wmain(int argc, wchar_t* argv[]) { - for (int i = 0; i < argc; ++i) { + for (int i = 1; i < argc; ++i) { std::wcout << argv[i] << L'\n'; } return 0; |