Lines Matching full:printf
70 printf("ERROR: %s\n", msg); in die_()
79 printf("FAILED, %s", msg); in die_s_()
81 printf("FAILED"); in die_s_()
83 printf(", state = %u (%s)\n", (uint32_t)((::FLAC__StreamDecoderState)state), state.as_cstring()); in die_s_()
100 printf("\n\ngenerating %sFLAC file for decoder tests...\n", is_ogg? "Ogg ":""); in generate_file_()
143 printf("content... "); in common_write_callback_()
155 printf("%u... ", current_metadata_number_); in common_metadata_callback_()
174 …printf("ERROR: got error callback: err = %u (%s)\n", (uint32_t)status, ::FLAC__StreamDecoderErrorS… in common_error_callback_()
309 printf("FAILED at set_md5_checking(), returned false\n"); in test_respond()
313 printf("testing init%s()... ", is_ogg? "_ogg":""); in test_respond()
317 printf("OK\n"); in test_respond()
322 printf("FAILED rewinding input, errno = %d\n", errno); in test_respond()
326 printf("testing process_until_end_of_stream()... "); in test_respond()
329 …printf("FAILED, returned false, state = %u (%s)\n", (uint32_t)((::FLAC__StreamDecoderState)state),… in test_respond()
332 printf("OK\n"); in test_respond()
334 printf("testing finish()... "); in test_respond()
337 …printf("FAILED, returned false, state = %u (%s)\n", (uint32_t)((::FLAC__StreamDecoderState)state),… in test_respond()
340 printf("OK\n"); in test_respond()
379 printf("FAILED at set_md5_checking(), returned false\n"); in test_respond()
386 printf("opening %sFLAC file... ", is_ogg? "Ogg ":""); in test_respond()
389 printf("ERROR (%s)\n", strerror(errno)); in test_respond()
392 printf("OK\n"); in test_respond()
394 printf("testing init%s()... ", is_ogg? "_ogg":""); in test_respond()
399 printf("testing init%s()... ", is_ogg? "_ogg":""); in test_respond()
408 printf("OK\n"); in test_respond()
412 printf("testing process_until_end_of_stream()... "); in test_respond()
415 …printf("FAILED, returned false, state = %u (%s)\n", (uint32_t)((::FLAC__StreamDecoderState)state),… in test_respond()
418 printf("OK\n"); in test_respond()
420 printf("testing finish()... "); in test_respond()
423 …printf("FAILED, returned false, state = %u (%s)\n", (uint32_t)((::FLAC__StreamDecoderState)state),… in test_respond()
426 printf("OK\n"); in test_respond()
446 …printf("\n+++ libFLAC++ unit test: FLAC::Decoder::%s (layer: %s, format: %s)\n\n", layer<LAYER_FIL… in test_stream_decoder()
451 printf("allocating decoder instance... "); in test_stream_decoder()
454 printf("FAILED, new returned NULL\n"); in test_stream_decoder()
457 printf("OK\n"); in test_stream_decoder()
459 printf("testing is_valid()... "); in test_stream_decoder()
461 printf("FAILED, returned false\n"); in test_stream_decoder()
465 printf("OK\n"); in test_stream_decoder()
467 printf("freeing decoder instance... "); in test_stream_decoder()
469 printf("OK\n"); in test_stream_decoder()
474 printf("allocating decoder instance... "); in test_stream_decoder()
477 printf("FAILED, new returned NULL\n"); in test_stream_decoder()
480 printf("OK\n"); in test_stream_decoder()
482 printf("testing is_valid()... "); in test_stream_decoder()
484 printf("FAILED, returned false\n"); in test_stream_decoder()
488 printf("OK\n"); in test_stream_decoder()
490 printf("testing init%s()... ", is_ogg? "_ogg":""); in test_stream_decoder()
514 printf("OK\n"); in test_stream_decoder()
516 printf("freeing decoder instance... "); in test_stream_decoder()
518 printf("OK\n"); in test_stream_decoder()
526 printf("allocating decoder instance... "); in test_stream_decoder()
529 printf("FAILED, new returned NULL\n"); in test_stream_decoder()
532 printf("OK\n"); in test_stream_decoder()
534 printf("testing is_valid()... "); in test_stream_decoder()
536 printf("FAILED, returned false\n"); in test_stream_decoder()
540 printf("OK\n"); in test_stream_decoder()
543 printf("testing set_ogg_serial_number()... "); in test_stream_decoder()
546 printf("OK\n"); in test_stream_decoder()
550 printf("FAILED at set_md5_checking(), returned false\n"); in test_stream_decoder()
557 printf("opening %sFLAC file... ", is_ogg? "Ogg ":""); in test_stream_decoder()
560 printf("ERROR (%s)\n", strerror(errno)); in test_stream_decoder()
563 printf("OK\n"); in test_stream_decoder()
565 printf("testing init%s()... ", is_ogg? "_ogg":""); in test_stream_decoder()
570 printf("opening FLAC file... "); in test_stream_decoder()
573 printf("ERROR (%s)\n", strerror(errno)); in test_stream_decoder()
576 printf("OK\n"); in test_stream_decoder()
578 printf("testing init%s()... ", is_ogg? "_ogg":""); in test_stream_decoder()
585 printf("testing init%s()... ", is_ogg? "_ogg":""); in test_stream_decoder()
596 printf("OK\n"); in test_stream_decoder()
598 printf("testing get_state()... "); in test_stream_decoder()
600 …printf("returned state = %u (%s)... OK\n", (uint32_t)((::FLAC__StreamDecoderState)state), state.as… in test_stream_decoder()
606 printf("testing get_md5_checking()... "); in test_stream_decoder()
608 printf("FAILED, returned false, expected true\n"); in test_stream_decoder()
611 printf("OK\n"); in test_stream_decoder()
613 printf("testing process_until_end_of_metadata()... "); in test_stream_decoder()
616 printf("OK\n"); in test_stream_decoder()
618 printf("testing process_single()... "); in test_stream_decoder()
621 printf("OK\n"); in test_stream_decoder()
623 printf("testing skip_single_frame()... "); in test_stream_decoder()
626 printf("OK\n"); in test_stream_decoder()
629 printf("testing flush()... "); in test_stream_decoder()
632 printf("OK\n"); in test_stream_decoder()
635 printf("testing process_single()... "); in test_stream_decoder()
638 printf("OK\n"); in test_stream_decoder()
643 printf("testing seek_absolute()... "); in test_stream_decoder()
646 printf("OK\n"); in test_stream_decoder()
648 printf("testing process_until_end_of_stream()... "); in test_stream_decoder()
651 printf("OK\n"); in test_stream_decoder()
654 printf("testing seek_absolute()... "); in test_stream_decoder()
657 printf("OK\n"); in test_stream_decoder()
659 printf("testing get_channels()... "); in test_stream_decoder()
663 printf("FAILED, returned %u, expected %u\n", channels, streaminfo_.data.stream_info.channels); in test_stream_decoder()
667 printf("OK\n"); in test_stream_decoder()
669 printf("testing get_bits_per_sample()... "); in test_stream_decoder()
673 …printf("FAILED, returned %u, expected %u\n", bits_per_sample, streaminfo_.data.stream_info.bits_pe… in test_stream_decoder()
677 printf("OK\n"); in test_stream_decoder()
679 printf("testing get_sample_rate()... "); in test_stream_decoder()
683 …printf("FAILED, returned %u, expected %u\n", sample_rate, streaminfo_.data.stream_info.sample_rate… in test_stream_decoder()
687 printf("OK\n"); in test_stream_decoder()
689 printf("testing get_blocksize()... "); in test_stream_decoder()
693 printf("returned %u... %s\n", blocksize, blocksize>0? "OK" : "FAILED"); in test_stream_decoder()
698 printf("testing get_channel_assignment()... "); in test_stream_decoder()
701 printf("returned %u (%s)... OK\n", (uint32_t)ca, ::FLAC__ChannelAssignmentString[ca]); in test_stream_decoder()
705 printf("testing reset()... "); in test_stream_decoder()
708 printf("OK\n"); in test_stream_decoder()
712 printf("rewinding input... "); in test_stream_decoder()
714 printf("FAILED, errno = %d\n", errno); in test_stream_decoder()
717 printf("OK\n"); in test_stream_decoder()
722 printf("testing process_until_end_of_stream()... "); in test_stream_decoder()
725 printf("OK\n"); in test_stream_decoder()
728 printf("testing finish()... "); in test_stream_decoder()
731 …printf("FAILED, returned false, state = %u (%s)\n", (uint32_t)((::FLAC__StreamDecoderState)state),… in test_stream_decoder()
734 printf("OK\n"); in test_stream_decoder()
740 printf("testing set_metadata_respond_all()... "); in test_stream_decoder()
742 printf("FAILED, returned false\n"); in test_stream_decoder()
745 printf("OK\n"); in test_stream_decoder()
777 printf("testing set_metadata_ignore_all()... "); in test_stream_decoder()
779 printf("FAILED, returned false\n"); in test_stream_decoder()
782 printf("OK\n"); in test_stream_decoder()
793 printf("testing set_metadata_respond_all()... "); in test_stream_decoder()
795 printf("FAILED, returned false\n"); in test_stream_decoder()
798 printf("OK\n"); in test_stream_decoder()
800 printf("testing set_metadata_ignore(VORBIS_COMMENT)... "); in test_stream_decoder()
802 printf("FAILED, returned false\n"); in test_stream_decoder()
805 printf("OK\n"); in test_stream_decoder()
825 printf("testing set_metadata_respond_all()... "); in test_stream_decoder()
827 printf("FAILED, returned false\n"); in test_stream_decoder()
830 printf("OK\n"); in test_stream_decoder()
832 printf("testing set_metadata_ignore(APPLICATION)... "); in test_stream_decoder()
834 printf("FAILED, returned false\n"); in test_stream_decoder()
837 printf("OK\n"); in test_stream_decoder()
865 printf("testing set_metadata_respond_all()... "); in test_stream_decoder()
867 printf("FAILED, returned false\n"); in test_stream_decoder()
870 printf("OK\n"); in test_stream_decoder()
872 printf("testing set_metadata_ignore_application(of app block #1)... "); in test_stream_decoder()
874 printf("FAILED, returned false\n"); in test_stream_decoder()
877 printf("OK\n"); in test_stream_decoder()
907 printf("testing set_metadata_respond_all()... "); in test_stream_decoder()
909 printf("FAILED, returned false\n"); in test_stream_decoder()
912 printf("OK\n"); in test_stream_decoder()
914 printf("testing set_metadata_ignore_application(of app block #1)... "); in test_stream_decoder()
916 printf("FAILED, returned false\n"); in test_stream_decoder()
919 printf("OK\n"); in test_stream_decoder()
921 printf("testing set_metadata_ignore_application(of app block #2)... "); in test_stream_decoder()
923 printf("FAILED, returned false\n"); in test_stream_decoder()
926 printf("OK\n"); in test_stream_decoder()
954 printf("testing set_metadata_ignore_all()... "); in test_stream_decoder()
956 printf("FAILED, returned false\n"); in test_stream_decoder()
959 printf("OK\n"); in test_stream_decoder()
961 printf("testing set_metadata_respond(VORBIS_COMMENT)... "); in test_stream_decoder()
963 printf("FAILED, returned false\n"); in test_stream_decoder()
966 printf("OK\n"); in test_stream_decoder()
978 printf("testing set_metadata_ignore_all()... "); in test_stream_decoder()
980 printf("FAILED, returned false\n"); in test_stream_decoder()
983 printf("OK\n"); in test_stream_decoder()
985 printf("testing set_metadata_respond(APPLICATION)... "); in test_stream_decoder()
987 printf("FAILED, returned false\n"); in test_stream_decoder()
990 printf("OK\n"); in test_stream_decoder()
1003 printf("testing set_metadata_ignore_all()... "); in test_stream_decoder()
1005 printf("FAILED, returned false\n"); in test_stream_decoder()
1008 printf("OK\n"); in test_stream_decoder()
1010 printf("testing set_metadata_respond_application(of app block #1)... "); in test_stream_decoder()
1012 printf("FAILED, returned false\n"); in test_stream_decoder()
1015 printf("OK\n"); in test_stream_decoder()
1027 printf("testing set_metadata_ignore_all()... "); in test_stream_decoder()
1029 printf("FAILED, returned false\n"); in test_stream_decoder()
1032 printf("OK\n"); in test_stream_decoder()
1034 printf("testing set_metadata_respond_application(of app block #1)... "); in test_stream_decoder()
1036 printf("FAILED, returned false\n"); in test_stream_decoder()
1039 printf("OK\n"); in test_stream_decoder()
1041 printf("testing set_metadata_respond_application(of app block #2)... "); in test_stream_decoder()
1043 printf("FAILED, returned false\n"); in test_stream_decoder()
1046 printf("OK\n"); in test_stream_decoder()
1059 printf("testing set_metadata_respond_all()... "); in test_stream_decoder()
1061 printf("FAILED, returned false\n"); in test_stream_decoder()
1064 printf("OK\n"); in test_stream_decoder()
1066 printf("testing set_metadata_ignore(APPLICATION)... "); in test_stream_decoder()
1068 printf("FAILED, returned false\n"); in test_stream_decoder()
1071 printf("OK\n"); in test_stream_decoder()
1073 printf("testing set_metadata_respond_application(of app block #1)... "); in test_stream_decoder()
1075 printf("FAILED, returned false\n"); in test_stream_decoder()
1078 printf("OK\n"); in test_stream_decoder()
1108 printf("testing set_metadata_ignore_all()... "); in test_stream_decoder()
1110 printf("FAILED, returned false\n"); in test_stream_decoder()
1113 printf("OK\n"); in test_stream_decoder()
1115 printf("testing set_metadata_respond(APPLICATION)... "); in test_stream_decoder()
1117 printf("FAILED, returned false\n"); in test_stream_decoder()
1120 printf("OK\n"); in test_stream_decoder()
1122 printf("testing set_metadata_ignore_application(of app block #1)... "); in test_stream_decoder()
1124 printf("FAILED, returned false\n"); in test_stream_decoder()
1127 printf("OK\n"); in test_stream_decoder()
1138 printf("freeing decoder instance... "); in test_stream_decoder()
1140 printf("OK\n"); in test_stream_decoder()
1142 printf("\nPASSED!\n"); in test_stream_decoder()