From e15d0778ae5db408cfd4ff06170b9060e768e22f Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 13 Apr 2005 21:25:25 +0000 Subject: [PATCH] Don't test for a bad condition This commit was SVN r5323. --- test/class/ompi_list.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/test/class/ompi_list.c b/test/class/ompi_list.c index 40f48c4efa..9ed16cb8b9 100644 --- a/test/class/ompi_list.c +++ b/test/class/ompi_list.c @@ -266,19 +266,7 @@ int main(int argc, char **argv) } else { test_failure(" error in ompi_list_remove - list size changed incorrectly"); } -#ifdef OMPI_ENABLE_DEBUG - /* try and remove a non existant element from the list - - * testing debug code */ - printf("This should generate a warning:\n"); - fflush(stdout); - ele = (test_data_t *) - ompi_list_remove_item(&list,(ompi_list_item_t *)(elements+indx)); - if( ((test_data_t *)NULL) == ele ) { - test_success(); - } else { - test_failure(" error in ompi_list_remove - trying to remove element not on list"); - } -#endif /* OMPI_ENABLE_DEBUG */ + /* test the insert function */ i=ompi_list_insert(&list,(ompi_list_item_t *)(elements+indx),indx); if( 1 == i ) {