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