Skip to content

Commit cd13b48

Browse files
committed
Bypass debuild
1 parent 899297d commit cd13b48

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/xy.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Contributors : Nil Null <[email protected]>
77
* |
88
* Created On : <2023-08-30>
9-
* Last Modified : <2024-12-14>
9+
* Last Modified : <2025-06-19>
1010
*
1111
* Test xy.h
1212
* ------------------------------------------------------------*/
@@ -95,7 +95,14 @@ main (int argc, char const *argv[])
9595
}
9696
else
9797
{
98-
// assert (xy_file_exist ("~/.bashrc")); //TODO:debbuild会创建虚拟的home环境,待解决
98+
/**
99+
* debuild 过程会创建虚拟的 HOME 环境,导致检查 .bashrc 的测试会失败,所以我们先检查一下 .profile
100+
* 如果没有,则大概率也没有 .bashrc
101+
*/
102+
if (xy_file_exist ("~/.profile"))
103+
{
104+
assert (xy_file_exist (xy_bashrc));
105+
}
99106
assert (xy_dir_exist ("/etc"));
100107
}
101108

0 commit comments

Comments
 (0)