summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/damon/debugfs_empty_targets.sh
blob: 87aff8083822f6e2701ad65671ac428310b3bfa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

source _debugfs_common.sh

# Test empty targets case
# =======================

orig_target_ids=$(cat "$DBGFS/target_ids")
echo "" > "$DBGFS/target_ids"
orig_monitor_on=$(cat "$DBGFS/monitor_on")
test_write_fail "$DBGFS/monitor_on" "on" "orig_monitor_on" "empty target ids"
echo "$orig_target_ids" > "$DBGFS/target_ids"