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 | |
parent | WIP: add simple Process class (diff) | |
download | winapi-common-b2436ef9390b9dddb9c010eec5caca40400f8c8b.tar.gz winapi-common-b2436ef9390b9dddb9c010eec5caca40400f8c8b.zip |
rename utility "args" to "echo"
-rw-r--r-- | .appveyor.yml | 2 | ||||
-rw-r--r-- | test/CMakeLists.txt | 8 | ||||
-rw-r--r-- | test/echo.cpp (renamed from test/args.cpp) | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 1cbd5cd..da5c40a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -45,7 +45,7 @@ after_build: - appveyor.exe PushArtifact "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%.zip" test_script: - - '"%install_dir%\bin\winapi-common-unit-tests.exe" -- "--test_exe=%install_dir%\bin\winapi-common-test-args.exe"' + - '"%install_dir%\bin\winapi-common-unit-tests.exe" -- "--test_exe=%install_dir%\bin\winapi-common-test-echo.exe"' for: # Build Release on master only to speed things up: 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; |