[PATCH v3 2/2] selftests: coredump: Add stackdump test