]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/damon/sysfs.sh: test pause file existence
authorSeongJae Park <sj@kernel.org>
Fri, 22 May 2026 15:40:25 +0000 (08:40 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jun 2026 21:45:02 +0000 (14:45 -0700)
sysfs.sh DAMON selftest is not testing the existence of the 'pause' sysfs
file.  Add the test.

Link: https://lore.kernel.org/20260522154026.80546-15-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/sysfs.sh

index 92b44c86818af9beeda3c4de2ee5e1a0b1439a71..78f4badb5bebb54adec7f2cff5ad96c3753caed3 100755 (executable)
@@ -366,6 +366,7 @@ test_context()
        ensure_file "$context_dir/avail_operations" "exit" 400
        ensure_file "$context_dir/operations" "exist" 600
        ensure_file "$context_dir/addr_unit" "exist" 600
+       ensure_file "$context_dir/pause" "exist" 600
        test_monitoring_attrs "$context_dir/monitoring_attrs"
        test_targets "$context_dir/targets"
        test_schemes "$context_dir/schemes"