gcc -o CT_001 CT_001.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_002 CT_002.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_003 CT_003.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_004 CT_004.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_005 CT_005.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_006 CT_006.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_007 CT_007.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_008 CT_008.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_009 CT_009.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_010 CT_010.c -L/opt/xpmem/lib -lxpmem
gcc -o CT_011 CT_011.c -L/opt/xpmem/lib -lxpmem
gcc  -I/opt/xpmem/include -L/opt/xpmem/lib -lxpmem  rusage012.c   -o rusage012
./run.sh
mcstop+release.sh ... done
mcreboot.sh -c 4-7 -m 2G ... done
*** CT_001 start *******************************
 [OK] xpmem_make
 [OK] xpmem_get
 [OK] xpmem_attach
 [OK] xpmem_detach
 [OK] xpmem_remove
*** CT_001 PASSED

*** CT_002 start *******************************
 [OK] xpmem_make in child
 [OK] xpmem_get in child
 [OK] xpmem_attach in child
 [OK] xpmem_detach in child
 [OK] xpmem_remove in child
*** CT_002 PASSED

*** CT_003 start *******************************
 [OK] xpmem_make
 [OK] xpmem_get in child
 [OK] xpmem_attach in child
 [OK] xpmem_detach in child
 [OK] validate TEST_VAL
 [OK] xpmem_remove
*** CT_003 PASSED

*** CT_004 start *******************************
 [OK] xpmem_get in child
 [OK] xpmem_attach in child
 [OK] xpmem_detach in child
 [OK] xpmem_make
 [OK] validate TEST_VAL
 [OK] xpmem_remove
*** CT_004 PASSED

*** CT_005 start *******************************
 [OK] xpmem_make
 [OK] xpmem_get in child
 [OK] xpmem_attach in child
 [OK] validate TEST_VAL
 [OK] xpmem_remove
*** CT_005 PASSED

*** CT_006 start *******************************
 [OK] xpmem_make
 [OK] xpmem_get in child failed (parent process exited already
*** CT_006 PASSED

*** CT_007 start *******************************
 [OK] xpmem_make failed (invalid address)
 [OK] xpmem_make succeed(do twice to same address)
*** CT_007 PASSED

*** CT_008 start *******************************
 [OK] xpmem_get in child failed (invalid segid)
 [OK] xpmem_get in child (do twice to same segid
*** CT_008 PASSED

*** CT_009 start *******************************
 [OK] xpmem_attach in childi failed (invalid apid)
 [OK] xpmem_attach in child succeed (do twice to same apid)
*** CT_009 PASSED

*** CT_010 start *******************************
 [OK] xpmem_detach in child succeed (invalid address)
 [OK] xpmem_detach in child succeed (do twice to same address)
*** CT_010 PASSED

*** CT_011 start *******************************
 [OK] xpmem_remove failed (invalid segid)
 [OK] xpmem_remove failed (do twice to same segid)
*** CT_011 PASSED

1234
