gpm: use full path of executable, use assertion to test output

Closes #29428.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>