We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
debuild
1 parent 899297d commit cd13b48Copy full SHA for cd13b48
test/xy.c
@@ -6,7 +6,7 @@
6
* Contributors : Nil Null <[email protected]>
7
* |
8
* Created On : <2023-08-30>
9
- * Last Modified : <2024-12-14>
+ * Last Modified : <2025-06-19>
10
*
11
* Test xy.h
12
* ------------------------------------------------------------*/
@@ -95,7 +95,14 @@ main (int argc, char const *argv[])
95
}
96
else
97
{
98
- // assert (xy_file_exist ("~/.bashrc")); //TODO:debbuild会创建虚拟的home环境,待解决
+ /**
99
+ * debuild 过程会创建虚拟的 HOME 环境,导致检查 .bashrc 的测试会失败,所以我们先检查一下 .profile
100
+ * 如果没有,则大概率也没有 .bashrc
101
+ */
102
+ if (xy_file_exist ("~/.profile"))
103
+ {
104
+ assert (xy_file_exist (xy_bashrc));
105
+ }
106
assert (xy_dir_exist ("/etc"));
107
108
0 commit comments