mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
Updated test to have a comment explaining its purpose (very important this, especially for regression tests), and to ...
Original commit message from CVS: Updated test to have a comment explaining its purpose (very important this, especially for regression tests), and to actually test what I meant it to.
This commit is contained in:
parent
51847f3fe4
commit
1f3f906886
2 changed files with 14 additions and 2 deletions
|
@ -1,7 +1,13 @@
|
|||
#include <gst/gst.h>
|
||||
|
||||
/* This tests that gst_init() doesn't segfault when passed two NULLs as
|
||||
* parameters, and that it doesn't fail if gst_init() happens to get called
|
||||
* a second time. */
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
gst_init(&argc,&argv);
|
||||
gst_init(NULL, NULL);
|
||||
gst_init(&argc, &argv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
#include <gst/gst.h>
|
||||
|
||||
/* This tests that gst_init() doesn't segfault when passed two NULLs as
|
||||
* parameters, and that it doesn't fail if gst_init() happens to get called
|
||||
* a second time. */
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
gst_init(&argc,&argv);
|
||||
gst_init(NULL, NULL);
|
||||
gst_init(&argc, &argv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue