1
1

Cleanup some of the test areas.

Add a memset to if.c so that purify and valgrind stop complaining about uninitialized memory.

This commit was SVN r4988.
Этот коммит содержится в:
Ralph Castain 2005-03-22 15:37:58 +00:00
родитель 9b2b3ec078
Коммит abd1048646
4 изменённых файлов: 11 добавлений и 8 удалений

Просмотреть файл

@ -126,6 +126,9 @@ static int ompi_ifinit(void)
return OMPI_ERROR; return OMPI_ERROR;
} }
/* initialize the memory so valgrind and purify won't complain */
memset(ifconf.ifc_req, 0, ifc_len);
if(ioctl(sd, SIOCGIFCONF, &ifconf) < 0) { if(ioctl(sd, SIOCGIFCONF, &ifconf) < 0) {
/* if we got an einval, we probably don't have enough /* if we got an einval, we probably don't have enough
space. so we'll fall down and try to expand our space. so we'll fall down and try to expand our

Просмотреть файл

@ -17,24 +17,24 @@ include $(top_srcdir)/config/Makefile.options
AM_CPPFLAGS = -I$(top_srcdir)/test/support -DOMPI_ENABLE_DEBUG_OVERRIDE=1 AM_CPPFLAGS = -I$(top_srcdir)/test/support -DOMPI_ENABLE_DEBUG_OVERRIDE=1
check_PROGRAMS = \ check_PROGRAMS = \
test_ns_replica \ ns_replica \
test_ns_proxy \ ns_proxy \
ns_nds ns_nds
TESTS = \ TESTS = \
$(check_PROGRAMS) $(check_PROGRAMS)
test_ns_replica_SOURCES = test_ns_replica.c ns_replica_SOURCES = ns_replica.c
test_ns_replica_LDADD = \ ns_replica_LDADD = \
$(top_builddir)/test/support/libsupport.a \ $(top_builddir)/test/support/libsupport.a \
$(top_builddir)/src/libmpi.la $(top_builddir)/src/libmpi.la
test_ns_replica_DEPENDENCIES = $(test_ns_replica_LDADD) ns_replica_DEPENDENCIES = $(ns_replica_LDADD)
test_ns_proxy_SOURCES = test_ns_proxy.c ns_proxy_SOURCES = ns_proxy.c
test_ns_proxy_LDADD = \ ns_proxy_LDADD = \
$(top_builddir)/test/support/libsupport.a \ $(top_builddir)/test/support/libsupport.a \
$(top_builddir)/src/libmpi.la $(top_builddir)/src/libmpi.la
test_ns_proxy_DEPENDENCIES = $(test_ns_proxy_LDADD) ns_proxy_DEPENDENCIES = $(ns_proxy_LDADD)
ns_nds_SOURCES = ns_nds.c ns_nds_SOURCES = ns_nds.c
ns_nds_LDADD = \ ns_nds_LDADD = \

Просмотреть файл

Просмотреть файл