File: mt-errors.test

package info (click to toggle)
mt-st 1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: ansic: 1,647; makefile: 106; sh: 16
file content (19 lines) | stat: -rw-r--r-- 516 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Wrong tape argument
./mt -f /dev/no-such-tape rewind
>>>2 /no-such-tape: No such file or directory/
>>>= 1

# Wrong file in show options
./mt -f tests/data/not-a-char-device stshowoptions
>>>2 /mt: not a character device/
>>>= 1

# /dev/null is not a tape device. Error message is ugly, though.
./mt -f /dev/null stshowoptions
>>>2 /Can't read the sysfs file '\/sys\/class\/scsi_tape/
>>>= 2

# /dev/null is not a tape device, so status fails.
./mt -f /dev/null status
>>>2 /Inappropriate ioctl for device/
>>>= 2