Skip to contentSkip to conversation

tests: libmount/context: 3 of 7 tests fail

DISCUSSION Bernhard Voelker 1 participant 1 message Jul 31, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

3 out of the 7 "context" tests fail:

== 1 ==
libmount/context-mount-by-label:

--- /media/sdb5/berny/git/util-linux/tests/expected/libmount/context-mount-by-label 2011-07-19 12:33:59.000000000
+0200
+++ /media/sdb5/berny/git/util-linux/tests/output/libmount/context-mount-by-label 2012-07-31 07:48:17.278156133
+0200
@@ -1 +1,2 @@
-successfully mounted
+failed to mount: No such file or directory
+FAILED [rc=-5002](by label) cannot find /dev/sdh1 in /media/sdb5/berny/git/util-linux/tests/output/libmount/context.mtab

An additional strace finds the reason:

stat("/dev/disk/by-label/libmount-test", 0x7fff11d9a1f0) = -1 ENOENT (No such file or directory)

== 2 ==
libmount/context-umount-by-mountpoint:

--- /media/sdb5/berny/git/util-linux/tests/expected/libmount/context-umount-by-mountpoint 2011-07-19
12:33:59.000000000 +0200
+++ /media/sdb5/berny/git/util-linux/tests/output/libmount/context-umount-by-mountpoint 2012-07-31 08:00:51.697334780
+0200
@@ -1 +1,2 @@
-successfully umounted
+failed to umount
+FAILED [rc=22]
\ No newline at end of file

and the strace output:

umount("/media/sdb5/berny/git/util-linux"..., 0) = -1 EINVAL (Invalid argument)

I think this is because the previous test context-mount-by-label failed.

== 3 ==
libmount/context-mount-by-uuid:

Similar to #1:

--- /media/sdb5/berny/git/util-linux/tests/expected/libmount/context-mount-by-uuid 2011-07-19 12:33:59.000000000
+0200
+++ /media/sdb5/berny/git/util-linux/tests/output/libmount/context-mount-by-uuid 2012-07-31 07:51:50.671831873
+0200
@@ -1,2 +1,4 @@
-successfully mounted
-successfully umounted
+failed to mount: No such file or directory
+FAILED [rc=-5002](by uuid) cannot find /dev/sdh1 in /media/sdb5/berny/git/util-linux/tests/output/libmount/context.mtab +failed to umount
+FAILED [rc=22]
\ No newline at end of file

and the strace output:

stat("/dev/disk/by-uuid/ebda8159-3411-4d0b-a5c4-369cefc900f5", 0x7fffad358cd0) = -1 ENOENT (No such file or directory)

Is this a test framework failure, a real error or is there something strange on my PC (OpenSuSE-12.1 64-bit)?

Have a nice day,
Berny