ComputeRecoveryBlockCount redundnacysize > 0 scVariable with number of recovery files undetermined
| 339 | // redundnacysize > 0 |
| 340 | // scVariable with number of recovery files undetermined |
| 341 | int test8() { |
| 342 | //sourcefilecount, sourceblockcount, blocksize, redundancysize |
| 343 | if (test8_helper(10, 600, 1024*1024, 40*1024*1024)) |
| 344 | return 1; |
| 345 | |
| 346 | if (test8_helper( 1, 600, 1024*1024, 40*1024*1024)) |
| 347 | return 1; |
| 348 | |
| 349 | if (test8_helper(10, 60, 1024*1024, 40*1024*1024)) |
| 350 | return 1; |
| 351 | |
| 352 | // |
| 353 | // WARNING: THIS TEST USUALLY FAILS BY A SMALL AMOUNT |
| 354 | // The ==1 at the end will make the test fail |
| 355 | // if the function doesn't return any value. |
| 356 | // |
| 357 | if (test8_helper(10, 600, 16*1024, 40*1024*1024) == 1) |
| 358 | return 1; |
| 359 | |
| 360 | if (test8_helper(10, 600, 1024*1024, 10*1024*1024)) |
| 361 | return 1; |
| 362 | |
| 363 | |
| 364 | if (test8_helper(1, 5000, 1024*1024, 50*1024*1024)) |
| 365 | return 1; |
| 366 | |
| 367 | return 0; |
| 368 | } |
| 369 | |
| 370 | |
| 371 | // calls Parse and expects it to fail. |