File: 015_test_ilistdelete.sh

package info (click to toggle)
cowdancer 0.73
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 752 kB
  • ctags: 269
  • sloc: ansic: 3,822; sh: 481; makefile: 191; cpp: 6
file content (23 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# test if ilist deletion is handled gracefully
# 0.9 used to hang if pthread was used and ilist was not available.
set -ex

TESTDIR=$(mktemp -d )
TESTCODE=$(readlink -f tests/015_test_ilistdelete.c)
RUNC=$(readlink -f tests/run_c.sh)

(
    cd ${TESTDIR}
    mkdir 1/
# make a few files for testing.
    touch 1/a 1/b 1/c 1/d
    cp -al 1 2
    dd if=/dev/zero of=1/e bs=512 count=2

    cow-shell $RUNC $TESTCODE
)
RET=$?
rm -rf ${TESTDIR}

exit $RET