summaryrefslogtreecommitdiffstats
path: root/27/regr/testcase
blob: bcc2ff08c3c9d0e769f694a1de2ccafa5300074f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

description="# testing/features/trashcan crashes server"
comments="#the actual bug.... After deleting a file, if you browse to the trashcan and delete it again, the server crashes."

source ../../init

start_glusterfs

sleep 5

touch $MOUNTDIR/client1/test1 && rm $MOUNTDIR/client1/test1
for var in `seq 1 100`; do
	rm $MOUNTDIR/client1/.trashcan/test1 2> /dev/null
        if [ $? -ne 0 ];then
                not_ok $description
                comment $comments
                break
        fi
done

[ $var -eq 100 ] && ok $description

cleanup_glusterfs