diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ec41b51..d4fdd68e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ if(CMAKE_HOST_WIN32 AND DEFINED CMAKE_TOOLCHAIN_FILE AND CMAKE_TOOLCHAIN_FILE MA set(VCPKG_TARGET_TRIPLET "x64-windows-static" CACHE STRING "Vcpkg target triplet" FORCE) endif() -project(acecode VERSION 1.0.30 LANGUAGES C CXX) +project(acecode VERSION 1.0.31 LANGUAGES C CXX) include(${CMAKE_SOURCE_DIR}/cmake/acecode_source_guards.cmake) diff --git a/tests/desktop/desktop_restart_test.cpp b/tests/desktop/desktop_restart_test.cpp index e4417add..edd0295b 100644 --- a/tests/desktop/desktop_restart_test.cpp +++ b/tests/desktop/desktop_restart_test.cpp @@ -137,6 +137,11 @@ TEST(DesktopRestart, ReplacementArgumentsMustBePlainSwitches) { fs::path executable = temp.path() / "acecode-desktop"; #endif std::ofstream(executable, std::ios::binary) << "stub"; +#ifndef _WIN32 + fs::permissions(executable, + fs::perms::owner_read | fs::perms::owner_write | fs::perms::owner_exec, + fs::perm_options::replace); +#endif error.clear(); EXPECT_FALSE(launch_desktop_replacement(executable, {"--bad arg"}, &error)); EXPECT_NE(error.find("plain switch"), std::string::npos); diff --git a/vcpkg.json b/vcpkg.json index 95b1ad26..a56fe693 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "acecode", - "version-semver": "1.0.30", + "version-semver": "1.0.31", "dependencies": [ "cpr", {