Skip to content

Commit

Permalink
Add unit test program, xrdshmap, to teh test suite.
Browse files Browse the repository at this point in the history
Fix pedantic compiler complaints.
Add pthread library to the XrdSsiShMap.so build.
  • Loading branch information
abh3 committed Jun 2, 2015
1 parent f43a621 commit db3603d
Show file tree
Hide file tree
Showing 5 changed files with 1,072 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/XrdSsi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ XrdSsi/XrdSsiShMat.cc XrdSsi/XrdSsiShMat.hh)

target_link_libraries(
XrdSsiShMap
${ZLIB_LIBRARY} )
${ZLIB_LIBRARY}
pthread )

set_target_properties(
XrdSsiShMap
Expand Down
1 change: 0 additions & 1 deletion src/XrdSsi/XrdSsiShMap.icc
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ bool XrdSsi::ShMap<T>::Resize(XrdSsi::ShMap_Parms *parms)
{
XrdSsi::ShMap_Parms rszParms(XrdSsi::ShMap_Parms::ForResize);
XrdSsiShMat::CRZParms crzParms;
int rc;

// First see if this object is already attached.
//
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

add_subdirectory( common )
add_subdirectory( XrdClTests )
add_subdirectory( XrdSsiTests )

if( BUILD_CEPH )
include( XrdCephTests )
Expand Down
19 changes: 19 additions & 0 deletions tests/XrdSsiTests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

include( XRootDCommon )

add_executable(
xrdshmap
XrdShMap.cc
)

target_link_libraries(
xrdshmap
XrdSsiShMap )

#-------------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------------
install(
TARGETS xrdshmap
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
Loading

0 comments on commit db3603d

Please sign in to comment.