<loglevel_type>RANGE</loglevel_type>
<loglevel>6</loglevel>
</event>
+ <event>
+ <name>uevent_disabled</name>
+ <enabled>false</enabled>
+ <type>TRACEPOINT</type>
+ <loglevel_type>ALL</loglevel_type>
+ <loglevel>-1</loglevel>
+ </event>
</events>
<contexts/>
</channel>
DIR=$(readlink -f $TESTDIR)
-NUM_TESTS=20
+NUM_TESTS=21
source $TESTDIR/utils/utils.sh
disable_ust_lttng_channel $sess chan2
disable_ust_lttng_channel $sess chan3
+ # Confirm that an event stored as disabled is restored in its disabled state
+ local mi_output_file=$(mktemp)
+ if [ $? -ne 0 ]; then
+ break;
+ fi
+ lttng --mi XML list $sess -c chan2 > $mi_output_file
+ mi_result=$($CURDIR/../mi/extract_xml $mi_output_file "//command/output/sessions/session/domains/domain/channels/channel[name='chan2']/events/event[name='uevent_disabled']/enabled/text()")
+ if [[ $mi_result = "false" ]]; then
+ ok 0 "Disabled event is loaded in disabled state"
+ else
+ fail "Disabled event is loaded in disabled state"
+ fi
destroy_lttng_session $sess
stop_lttng_relayd_nocheck