2016-11-25 17:18:40 +01:00
|
|
|
|
#!/cmd/rc
|
|
|
|
|
|
2019-11-28 02:35:52 +01:00
|
|
|
|
sys_rfork
|
2016-11-25 17:18:40 +01:00
|
|
|
|
|
2019-11-28 02:35:52 +01:00
|
|
|
|
@{sys_rfork n; mkdir '#σc'/testshr; ramfs -S testshr; echo 3 > '#σc'/testshr/ramfs <>[3]/srv/testshr; echo PASS > '#σ'/testshr/file }
|
2016-11-25 17:18:40 +01:00
|
|
|
|
|
|
|
|
|
bind '#σ' /shr
|
|
|
|
|
|
|
|
|
|
RESULT=`{cat /shr/testshr/file}
|
|
|
|
|
|
|
|
|
|
rm -fr '#σc'/testshr
|
|
|
|
|
rm /srv/testshr
|
|
|
|
|
|
|
|
|
|
if (~ $RESULT PASS) { echo PASS; exit PASS }
|
|
|
|
|
if not { echo FAIL; exit FAIL }
|