ntel-gpu-tools/tests/debugfs_emon_crash
Daniel Vetter bb86947638 tests: fixup drm_lib.sh sourcing
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-04-04 11:13:06 +02:00

17 lines
340 B
Bash
Executable File

#!/bin/sh
#
# This check if we can crash the kernel with segmentation-fault
# by reading /sys/kernel/debug/dri/0/i915_emon_status too quickly
#
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
. $SOURCE_DIR/drm_lib.sh
for z in $(seq 1 1000); do
cat $i915_path/i915_emon_status > /dev/null
done
# If we got here, we haven't crashed
exit 0