trigger-action-hist-xfail.tc (556B)
1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3# description: event trigger - test inter-event histogram trigger expected fail actions 4# requires: set_event snapshot "snapshot()":README 5 6fail() { #msg 7 echo $1 8 exit_fail 9} 10 11echo "Test expected snapshot action failure" 12 13echo 'hist:keys=comm:onmatch(sched.sched_wakeup).snapshot()' >> events/sched/sched_waking/trigger && exit_fail 14 15echo "Test expected save action failure" 16 17echo 'hist:keys=comm:onmatch(sched.sched_wakeup).save(comm,prio)' >> events/sched/sched_waking/trigger && exit_fail 18 19exit_xfail