From e6cdc6015d7b810dd3dd705b0872a93b18a64ae1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Jan 2020 17:16:26 +0300 Subject: lab_rat -> foobar --- .appveyor.yml | 6 +++--- test/CMakeLists.txt | 6 +++--- test/foobar.cpp | 21 +++++++++++++++++++++ test/lab_rat.cpp | 21 --------------------- 4 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 test/foobar.cpp delete mode 100644 test/lab_rat.cpp diff --git a/.appveyor.yml b/.appveyor.yml index b33c959..c38ef60 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -37,9 +37,9 @@ after_build: - appveyor.exe PushArtifact "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%.zip" test_script: - - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\lab_rat.pdb"' - - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\lab_rat.pdb" --mask "lab_rat!lab_rat*"' - - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\lab_rat.pdb" --functions --mask "lab_rat*"' + - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\foobar.pdb"' + - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\foobar.pdb" --mask "foobar!foobar_ns*"' + - '"%install_dir%\bin\enum_symbols" --pdb "%install_dir%\bin\foobar.pdb" --functions --mask "foobar_ns*"' for: # Only build Release builds on master to speed things up: diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c910931..619a51e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,7 +1,7 @@ set(CC_STATIC_RUNTIME OFF) -add_executable(lab_rat lab_rat.cpp) +add_executable(foobar foobar.cpp) -install(TARGETS lab_rat RUNTIME DESTINATION bin) +install(TARGETS foobar RUNTIME DESTINATION bin) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$" DESTINATION bin OPTIONAL) + install(FILES "$" DESTINATION bin OPTIONAL) endif() diff --git a/test/foobar.cpp b/test/foobar.cpp new file mode 100644 index 0000000..cdb8a97 --- /dev/null +++ b/test/foobar.cpp @@ -0,0 +1,21 @@ +namespace foobar_ns { + +int exit_code = 1; + +int baz() { + return exit_code; +} + +int bar() { + return baz() * 2; +} + +int foo() { + return bar() * 2; +} + +} // namespace foobar_ns + +int main() { + return foobar_ns::foo() * 2; +} diff --git a/test/lab_rat.cpp b/test/lab_rat.cpp deleted file mode 100644 index ed204b6..0000000 --- a/test/lab_rat.cpp +++ /dev/null @@ -1,21 +0,0 @@ -namespace lab_rat { - -int exit_code = 1; - -int baz() { - return exit_code; -} - -int bar() { - return baz() * 2; -} - -int foo() { - return bar() * 2; -} - -} // namespace lab_rat - -int main() { - return lab_rat::foo() * 2; -} -- cgit v1.2.3