check: Don't fail on GST_MESSAGE_WARNING

we will get some because some elements aren't present.

If the availability of those elements was critical, we will
eventually get an error message
This commit is contained in:
Edward Hervey 2012-08-30 16:54:17 -07:00
parent bd9a7fdeaf
commit 47d132e651

View file

@ -660,9 +660,6 @@ GST_START_TEST (test_raw_single_video_stream_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -740,9 +737,6 @@ GST_START_TEST (test_compressed_single_video_stream_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -823,9 +817,6 @@ GST_START_TEST (test_raw_single_video_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -906,9 +897,6 @@ GST_START_TEST (test_compressed_single_video_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -990,9 +978,6 @@ GST_START_TEST (test_raw_single_audio_stream_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1070,9 +1055,6 @@ GST_START_TEST (test_compressed_single_audio_stream_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1153,9 +1135,6 @@ GST_START_TEST (test_raw_single_audio_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1236,9 +1215,6 @@ GST_START_TEST (test_compressed_single_audio_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1319,9 +1295,6 @@ GST_START_TEST (test_raw_audio_video_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1403,9 +1376,6 @@ GST_START_TEST (test_compressed_audio_video_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1486,9 +1456,6 @@ GST_START_TEST (test_raw_compressed_video_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1566,9 +1533,6 @@ GST_START_TEST (test_raw_compressed_audio_stream_demuxer_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1685,9 +1649,6 @@ GST_START_TEST (test_raw_compressed_video_stream_demuxer_switch_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1780,9 +1741,6 @@ GST_START_TEST (test_compressed_raw_video_stream_demuxer_switch_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1875,9 +1833,6 @@ GST_START_TEST (test_raw_raw_video_stream_demuxer_switch_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -1971,9 +1926,6 @@ GST_START_TEST
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -2084,9 +2036,6 @@ GST_START_TEST (test_raw_compressed_audio_stream_demuxer_switch_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -2179,9 +2128,6 @@ GST_START_TEST (test_compressed_raw_audio_stream_demuxer_switch_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -2274,9 +2220,6 @@ GST_START_TEST (test_raw_raw_audio_stream_demuxer_switch_manual_sink)
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }
@ -2370,9 +2313,6 @@ GST_START_TEST
case GST_MESSAGE_ERROR: case GST_MESSAGE_ERROR:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR); fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR);
break; break;
case GST_MESSAGE_WARNING:
fail_if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_WARNING);
break;
default: default:
break; break;
} }