1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3
4source _debugfs_common.sh
5
6# Test duplicated context creation
7# ================================
8
9if ! echo foo > "$DBGFS/mk_contexts"
10then
11	echo "context creation failed"
12	exit 1
13fi
14
15if echo foo > "$DBGFS/mk_contexts"
16then
17	echo "duplicate context creation success"
18	exit 1
19fi
20
21if ! echo foo > "$DBGFS/rm_contexts"
22then
23	echo "context deletion failed"
24	exit 1
25fi
26
27exit 0
28