1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 3 4 source _debugfs_common.sh 5 6 # Test duplicated context creation 7 # ================================ 8 9 if ! echo foo > "$DBGFS/mk_contexts" 10 then 11 echo "context creation failed" 12 exit 1 13 fi 14 15 if echo foo > "$DBGFS/mk_contexts" 16 then 17 echo "duplicate context creation success" 18 exit 1 19 fi 20 21 if ! echo foo > "$DBGFS/rm_contexts" 22 then 23 echo "context deletion failed" 24 exit 1 25 fi 26 27 exit 0
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.