modprobe: remove flock() because it never worked anyway
[mit.git] / tests / test-rmmod / 02namefix.sh
blobef0be36d2662e5e9f015aa03407e8c7c68f08613
1 #! /bin/sh
3 mkdir -p tests/tmp/proc
5 # Old style
6 echo 'foo_bar 100 0' > tests/tmp/proc/modules
8 [ "`./rmmod foo_bar`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
10 [ "`./rmmod /lib/modules/$MODTEST_UNAME/kernel/foo_bar.o`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
12 [ "`./rmmod /lib/modules/$MODTEST_UNAME/kernel/foo_bar.ko`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
14 [ "`./rmmod /lib/modules/$MODTEST_UNAME/kernel/foo-bar.ko`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]
16 [ "`./rmmod foo-bar`" = "DELETE_MODULE: foo_bar EXCL NONBLOCK " ]