(mount) Cleanup mount tests and test-fstab; fix obvious errors.
This commit is contained in:
parent
1c4b461882
commit
6e0dc07ee2
4
test/fixtures/mount/test-fstab
vendored
4
test/fixtures/mount/test-fstab
vendored
@ -1,8 +1,10 @@
|
||||
proc /proc proc defaults 0 0
|
||||
none /debug debugfs defaults,noauto 0 0
|
||||
|
||||
# Test octal escapes
|
||||
# Simple obvious test.
|
||||
/mnt/nice-test-path /dev/null auto ro,noauto 0 0
|
||||
|
||||
# Test octal escapes
|
||||
# Contains ' ' and '-'
|
||||
/mnt/nice\040test\055path /dev/null auto ro,noauto 0 0
|
||||
# Contains '$' and '-'
|
||||
|
@ -57,6 +57,9 @@ assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
|
||||
sync_after_int
|
||||
|
||||
|
||||
assert_complete {/mnt/nice-test-path} {mnt /mnt/nice-test-p}
|
||||
sync_after_int
|
||||
|
||||
assert_complete {/mnt/nice\ test-path} {mnt /mnt/nice\ test-p}
|
||||
sync_after_int
|
||||
|
||||
@ -66,13 +69,17 @@ sync_after_int
|
||||
assert_complete {/mnt/nice\ test\\path} {mnt /mnt/nice\ test\\p}
|
||||
sync_after_int
|
||||
|
||||
assert_complete {/mnt/nice\ test-path} {mnt /mnt/nice\ }
|
||||
assert_complete {{/mnt/nice\ test\\path} {/mnt/nice\ test-path}} \
|
||||
{mnt /mnt/nice\ } "" /@ 20 {/mnt/nice\ }
|
||||
sync_after_int
|
||||
|
||||
assert_complete {/mnt/nice\$test-path} {mnt /mnt/nice\$}
|
||||
sync_after_int
|
||||
|
||||
assert_complete {'/mnt/nice\ test-path'} {mnt '/mnt/nice\ }
|
||||
assert_complete {$'/mnt/nice-test-path'} {mnt $'/mnt/nice-}
|
||||
sync_after_int
|
||||
|
||||
assert_complete {$'/mnt/nice\ntest-path'} {mnt $'/mnt/nice\n}
|
||||
sync_after_int
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user