drm/bridge: adv7511: Switch to atomic operations
[drm/drm-misc.git] / tools / testing / selftests / damon / debugfs_duplicate_context_creation.sh
blobbd6c22d96ead3052a61f42c0c82808e41a7cf264
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
4 source _debugfs_common.sh
6 # Test duplicated context creation
7 # ================================
9 if ! echo foo > "$DBGFS/mk_contexts"
10 then
11 echo "context creation failed"
12 exit 1
15 if echo foo > "$DBGFS/mk_contexts" 2> /dev/null
16 then
17 echo "duplicate context creation success"
18 exit 1
21 if ! echo foo > "$DBGFS/rm_contexts"
22 then
23 echo "context deletion failed"
24 exit 1
27 exit 0