File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,18 @@ function teardown() {
5555 run squashfs-mount ${SQFSDIR} /tools-offset.sqfs@2048:/user-tools -- cat /user-tools/tools/fileB.txt
5656}
5757
58+ @test " mount_offset_image_neg_offset" {
59+ run squashfs-mount ${SQFSDIR} /tools-offset.sqfs@-2048434:/user-tools -- cat /user-tools/tools/fileB.txt
60+ assert_failure
61+ assert_line --regexp " .*invalid value in offset:.*"
62+ }
63+
64+ @test " mount_offset_image_offset_twice" {
65+ run squashfs-mount ${SQFSDIR} /tools-offset.sqfs@2@2:/user-tools -- cat /user-tools/tools/fileB.txt
66+ assert_failure
67+ assert_line --regexp " .*invalid format:.*"
68+ }
69+
5870@test " mount_images" {
5971 run squashfs-mount ${SQFSDIR} /binaries.sqfs:/user-environment ${SQFSDIR} /profilers.sqfs:/user-profilers ${SQFSDIR} /tools.sqfs:/user-tools -- cat /user-environment/spack-install/fileA.txt
6072}
You can’t perform that action at this time.
0 commit comments