From 1f3f906886ff23ee0a9bcc5ae4d8d07b77b5b75b Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Fri, 9 Mar 2001 12:29:51 +0000 Subject: [PATCH] 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. --- tests/old/testsuite/test_gst_init.c | 8 +++++++- testsuite/test_gst_init.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/old/testsuite/test_gst_init.c b/tests/old/testsuite/test_gst_init.c index fd604e7..1749328 100644 --- a/tests/old/testsuite/test_gst_init.c +++ b/tests/old/testsuite/test_gst_init.c @@ -1,7 +1,13 @@ #include +/* 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; } diff --git a/testsuite/test_gst_init.c b/testsuite/test_gst_init.c index fd604e7..1749328 100644 --- a/testsuite/test_gst_init.c +++ b/testsuite/test_gst_init.c @@ -1,7 +1,13 @@ #include +/* 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; } -- 2.7.4