conditional testing of SharedArray
Merge pull request #5482 from amitmurthy/amitm/shmem_fix

conditional testing of SharedArray