From: Bert Vermeulen Date: Mon, 18 Nov 2013 09:55:02 +0000 (+0100) Subject: Remove unreasonable test X-Git-Tag: libsigrokdecode-0.3.0~219 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=eaad935fbaa3c301aded9c64dfe514cc4ca40968;p=libsigrokdecode.git Remove unreasonable test --- diff --git a/tests/check_decoder.c b/tests/check_decoder.c index 8b63715..e846585 100644 --- a/tests/check_decoder.c +++ b/tests/check_decoder.c @@ -312,24 +312,6 @@ START_TEST(test_doc_get_null) } END_TEST -/* - * Check whether srd_decoder_doc_get() fails with an "empty" argument. - * If it returns a value != NULL (or segfaults) this test will fail. - * See also: http://sigrok.org/bugzilla/show_bug.cgi?id=180 - */ -START_TEST(test_doc_get_empty) -{ - struct srd_decoder dec; - - srd_init(NULL); - - memset(&dec, 0, sizeof(struct srd_decoder)); - fail_unless(srd_decoder_doc_get(&dec) == NULL); - - srd_exit(); -} -END_TEST - Suite *suite_decoder(void) { Suite *s; @@ -366,7 +348,6 @@ Suite *suite_decoder(void) tc = tcase_create("doc_get"); tcase_add_test(tc, test_doc_get); tcase_add_test(tc, test_doc_get_null); - tcase_add_test(tc, test_doc_get_empty); suite_add_tcase(s, tc); return s;