Commit faca52b7 authored by Dafna Hirschfeld's avatar Dafna Hirschfeld

add unit test for link to same entity

parent f21dc5d1
......@@ -438,8 +438,24 @@ function test15 {
}
function test16 {
reinstall_vimc
modprobe -r vimc
modprobe -v vimc sca_mult=1
echo "============================================="
echo "make sure it is impossible to create a link from an entity to itself"
echo "============================================="
DEV=mdev
mkdir "/configfs/vimc/mdev/" || exit 1
mkdir "/configfs/vimc/mdev/vimc-scaler:sca1" || exit 1
link sca1 vimc-scaler 1 sca1 vimc-scaler 0 on && echo "Failure: connecting a scaler to itself should not be allowed" && exit 1
}
if [ $# == 0 ]; then
for test_idx in {1..9}
for test_idx in {1..16}
do
test$test_idx
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment