add a working shmemtest.c