28 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.03 4source _debugfs_common.sh5 6# Test duplicated context creation7# ================================8 9if ! echo foo > "$DBGFS/mk_contexts"10then11 echo "context creation failed"12 exit 113fi14 15if echo foo > "$DBGFS/mk_contexts"16then17 echo "duplicate context creation success"18 exit 119fi20 21if ! echo foo > "$DBGFS/rm_contexts"22then23 echo "context deletion failed"24 exit 125fi26 27exit 028