From cd13b48c213df8e92eb4183c8584d385b99ae508 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Thu, 19 Jun 2025 19:28:49 +0800 Subject: [PATCH] Bypass `debuild` --- test/xy.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/xy.c b/test/xy.c index 895791c..1edd52c 100644 --- a/test/xy.c +++ b/test/xy.c @@ -6,7 +6,7 @@ * Contributors : Nil Null * | * Created On : <2023-08-30> - * Last Modified : <2024-12-14> + * Last Modified : <2025-06-19> * * Test xy.h * ------------------------------------------------------------*/ @@ -95,7 +95,14 @@ main (int argc, char const *argv[]) } else { - // assert (xy_file_exist ("~/.bashrc")); //TODO:debbuild会创建虚拟的home环境,待解决 + /** + * debuild 过程会创建虚拟的 HOME 环境,导致检查 .bashrc 的测试会失败,所以我们先检查一下 .profile + * 如果没有,则大概率也没有 .bashrc + */ + if (xy_file_exist ("~/.profile")) + { + assert (xy_file_exist (xy_bashrc)); + } assert (xy_dir_exist ("/etc")); }