From: 최종헌/MDE Lab(SR)/삼성전자 Date: Mon, 10 Jul 2023 00:55:24 +0000 (+0900) Subject: Fix bugs for apps that do not have AOT metadata when running the --tac-regen-all... X-Git-Tag: accepted/tizen/unified/20230710.154005~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=5e91256049a851f8b5c91cbdda06fb8e426e2587;p=platform%2Fcore%2Fdotnet%2Flauncher.git Fix bugs for apps that do not have AOT metadata when running the --tac-regen-all option (#466) --- diff --git a/NativeLauncher/tool/tac_installer.cc b/NativeLauncher/tool/tac_installer.cc index f512400..820ef5a 100644 --- a/NativeLauncher/tool/tac_installer.cc +++ b/NativeLauncher/tool/tac_installer.cc @@ -131,7 +131,7 @@ static bool copyAssemblyCreateSymlink(std::string binPath, std::string tacDir, s nuget_restoration = true; break; } - if (exist(concatPath(tac_version_dir, niFile))) { + if (exist(concatPath(tac_version_dir, niFile)) && exist(binNiPath)) { bf::create_symlink(concatPath(tac_version_dir, niFile), concatPath(tacDir, niFile), error); if (error) { _ERR("Failed to create symlink %s file", concatPath(tacDir, niFile).c_str()); diff --git a/tests/TCs/6_TOOL/TOOL.py b/tests/TCs/6_TOOL/TOOL.py index 46b8e20..7f21487 100755 --- a/tests/TCs/6_TOOL/TOOL.py +++ b/tests/TCs/6_TOOL/TOOL.py @@ -683,6 +683,8 @@ def clean(): cmd(f"shell rm -rf {DOTNET_DIR}apps/org.tizen.example.Launcher_TC_TOOL_08.Tizen") cmd(f"shell rm -rf {DOTNET_DIR}apps/org.tizen.example.Launcher_TC_TOOL_09.Tizen") + cmd(f"shell tpk-backend --force-remove --preload -d org.tizen.example.Launcher_TC_TOOL_08.Tizen") + cmd(f"shell tpk-backend --force-remove --preload -d org.tizen.example.Launcher_TC_TOOL_09.Tizen") # Main entry point def main():