Fix shmat() wrong return value test method