尝试在 NetBeans 上测试我的 C 项目,测试永远不会结束,而输出是:
Test: testFileOne ...passed Test: testFileTwo ...passed
Run Summary: Type Total Ran Passed Failed Inactive
suites 1 1 n/a 0 0
tests 2 2 2 0 0
asserts 8 8 8 0 n/a
Elapsed time = 0.000 seconds
即使看起来完成了,进度条仍然在值 0.0% 处闪烁。
测试用例都是这样的:
void testMethod() {
CU_ASSERT(1 == 1);
//other lines of code..
CU_ASSERT(0 == 0);
}
每个函数有多个 CU_ASSERT。NetBeans 自动生成的测试代码的一些行为。
命令
make test
从命令行的工作就像一个魅力,并没有问题结束。
以前有人遇到过这个问题吗?有什么方法可以在不影响我的笔记本电脑的情况下解决它?预先感谢您的每条评论。