• Home
  • Raw
  • Download

Lines Matching refs:failed

226 static void resetDecoder(int& failed)  in resetDecoder()  argument
228 checkDataPathValue(pDecoder->TraceDataIn(OCSD_OP_RESET, 0, 0, 0, 0), failed); in resetDecoder()
232 static void checkInOutSizes(const char *test, size_t in, size_t out, int& failed) in checkInOutSizes() argument
235 failed++; in checkInOutSizes()
243 static int checkResult(int failed) in checkResult() argument
246 oss << "\nTEST : " << ((failed) ? "FAIL" : "PASS") << "\n"; in checkResult()
248 return failed; in checkResult()
254 int failed = 0; in testDemuxInit() local
267 failed++; in testDemuxInit()
282 failed++; in testDemuxInit()
297 failed++; in testDemuxInit()
303 return failed; in testDemuxInit()
309 int failed = 0; in runDemuxBadDataTest() local
319 resetDecoder(failed); in runDemuxBadDataTest()
320 …thValue(pDecoder->TraceDataIn(OCSD_OP_DATA, 0, buf_bad_data_sz, buf_bad_data, &processed), failed); in runDemuxBadDataTest()
324 failed--; // cancel the fail - we require that the error happens for bad input in runDemuxBadDataTest()
334 return checkResult(failed); in runDemuxBadDataTest()
342 int failed = 0; in runHSyncFSyncTest() local
355 resetDecoder(failed); in runHSyncFSyncTest()
358 failed); in runHSyncFSyncTest()
359 checkInOutSizes("HSyncFSync frame", buf_hsync_fsync_sz, processed, failed); in runHSyncFSyncTest()
363 resetDecoder(failed); in runHSyncFSyncTest()
366 failed); in runHSyncFSyncTest()
371 failed); in runHSyncFSyncTest()
373 checkInOutSizes("HSyncFSync split frame", buf_hsync_fsync_sz, total, failed); in runHSyncFSyncTest()
377 resetDecoder(failed); in runHSyncFSyncTest()
380 failed); in runHSyncFSyncTest()
384 failed--; // cancel the fail - we require that the error happens for bad input in runHSyncFSyncTest()
395 return checkResult(failed); in runHSyncFSyncTest()
401 int failed = 0; in runMemAlignTest() local
409 resetDecoder(failed); in runMemAlignTest()
412 failed); in runMemAlignTest()
413 checkInOutSizes("MemAlignFrame", buf_mem_align_sz, processed, failed); in runMemAlignTest()
417 resetDecoder(failed); in runMemAlignTest()
420 failed); in runMemAlignTest()
421 checkInOutSizes("MemAlignFrame-8-ID", buf_mem_align_8id_sz, processed, failed); in runMemAlignTest()
426 resetDecoder(failed); in runMemAlignTest()
429 failed); in runMemAlignTest()
430 checkInOutSizes("MemAlignFrame-rst_st", buf_mem_align_st_rst_sz, processed, failed); in runMemAlignTest()
433 resetDecoder(failed); in runMemAlignTest()
436 failed); in runMemAlignTest()
437 checkInOutSizes("MemAlignFrame-rst_mid", buf_mem_align_mid_rst_sz, processed, failed); in runMemAlignTest()
440 resetDecoder(failed); in runMemAlignTest()
443 failed); in runMemAlignTest()
444 checkInOutSizes("MemAlignFrame-rst_en", buf_mem_align_en_rst_sz, processed, failed); in runMemAlignTest()
447 return checkResult(failed); in runMemAlignTest()
452 int failed = 0; in main() local
475 failed += testDemuxInit(); in main()
489 failed++; in main()
495 failed += runMemAlignTest(); in main()
496 failed += runHSyncFSyncTest(); in main()
497 failed += runDemuxBadDataTest(); in main()
504 failed++; in main()
512 if (failed) in main()
513 moss << "FAILED: recorded " << failed << " errors or failures.\n"; in main()
523 return failed ? -1 : 0; in main()