clean_crash_dump
clean_temp
-sleep 777 &
+${CRASH_WORKER_SYSTEM_TESTS}/utils/kenny &
+pid=$!
sleep 2
-kill -6 $!
+kill -6 $pid
wait_for_app crash-manager
pushd ${CRASH_DUMP_PATH}
-name=$(echo *)
+name=$(echo kenny_${pid}_*)
name=${name%.zip}
-test -f ${name}.zip || exit_with_code "FAIL: crash report not found" 1
-unzip ${name}.zip || exit_with_code "FAIL: unable to extract archive" 1
+test -f "${name}.zip" || exit_with_code "FAIL: crash report not found" 1
+unzip "${name}.zip" || exit_with_code "FAIL: unable to extract archive" 1
# assumes default configuration - with coredump
-test -s ${name}/${name}.coredump.tar || test -f ${name}/${name}.coredump || exit_with_code "FAIL: coredump corrupt or not found" 1
+test -s "${name}/${name}.coredump.tar" || test -f ${name}/${name}.coredump || exit_with_code "FAIL: coredump corrupt or not found" 1
-test -s ${name}/${name}.log || exit_with_code "FAIL: log corrupt or not found" 1
-test -s ${name}/${name}.so_info || exit_with_code "FAIL: info corrupt or not found" 1
-test -s ${name}/${name}.info || exit_with_code "FAIL: info corrupt or not found" 1
+test -s "${name}/${name}.log" || exit_with_code "FAIL: log corrupt or not found" 1
+test -s "${name}/${name}.so_info" || exit_with_code "FAIL: info corrupt or not found" 1
+test -s "${name}/${name}.info" || exit_with_code "FAIL: info corrupt or not found" 1
for i in ${CRASH_TEMP_PATH}/*; do
test -a "${i}" && exit_with_code "FAIL: temp directory not cleaned up" 1