游戏出现死机,错误为: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xfffffffc in tid 9811 (GLThread 205) 或者 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault ad ...
分类:
移动开发 时间:
2016-03-31 18:51:29
阅读次数:
3463
a.Draw a CFG of the printPrimes() method; b. 当MAXPRIMES为3或4时。t2=(n=5)会因为越界而出现fault。但是t1=(n=3)不会出现fault。 c. edge (2,12), n=1 d. i.Node Coverage TR= {1, ...
分类:
其他好文 时间:
2016-03-31 14:37:38
阅读次数:
178
智力竞赛 Problem's Link Mean: 略(中文题). analyse: 比赛中最先想到的是三维dp,但思考后发现可以压缩为二维,状态转移方程: dp[i][j]=min(dp[i][j],dp[i][j-(right+fault)]+right) 其中dp[i][j]表示: 到通过第i ...
分类:
其他好文 时间:
2016-03-31 00:07:00
阅读次数:
271
1:The control flow of the program; 2: When we set the MAXPRIMES less than 5 but greater than 2, than the use case 5 would find the fault that the arra ...
分类:
其他好文 时间:
2016-03-30 22:29:34
阅读次数:
268
程序代码如下: 题目要求如下: (a)Draw the control flow graph (b)t1=(n=3),t2=(n=5) Design a simple fault that t2 would be more likely to discover than t1 would. (c)F ...
分类:
其他好文 时间:
2016-03-30 06:57:50
阅读次数:
168
一、对一个方法进行测试 1)画出此方法的控制流图 2)T1 : n = 3 ;T2 : n = 5; 设计一个 Fault 使T2 能发现,T1不能发现: 答: 将 if ( isDivisible(primes[i],curPrime) 修改 为 if ( isDivisible(primes[0 ...
分类:
其他好文 时间:
2016-03-30 01:40:41
阅读次数:
234
今天在hanoi问题上出现了segmentation fault 在gcc编译的过程中 没出现error,然而程序运行到一半就出现segmentation fault; 上网发现 这条语句是非法的内存操作,如数组越界(申请了a[5],结果使用了a[6]), 检测发现是我的被调用函数 void han
分类:
其他好文 时间:
2016-03-19 01:02:58
阅读次数:
529
1、(1)fault:由i>0知,i不可能为0,所以不可能得到期望值0,应该为 i >= 0 (2) 不执行故障测试用例 :x=[]; y=2 期望值=-1 (3) 执行故障不导致错误用例 : x=[3,2,5]; y=2 期望值=1 (4)导致错误但不是失败结果的用例: x=[1,3,5]; y=
分类:
其他好文 时间:
2016-03-10 01:34:29
阅读次数:
140
Fault的定义:可能导致系统或功能失效的异常条件(Abnormal condition that can cause an element or an item tofail.),可译为“故障”。 Error的定义:计算、观察或测量值或条件,与真实、规定或理论上正确的值或条件之间的差异(Discr
分类:
其他好文 时间:
2016-03-09 23:50:34
阅读次数:
489
Fault的定义:可能导致系统或功能失效的异常条件(Abnormal condition that can cause an element or an item tofail.),可译为“故障”。 Error的定义:计算、观察或测量值或条件,与真实、规定或理论上正确的值或条件之间的差异(Discr
分类:
其他好文 时间:
2016-03-09 23:50:33
阅读次数:
154