conformtest: Add mips XFAIL for struct stat st_dev type (bug 17786) [committed]

Submitted by Joseph S. Myers on March 17, 2017, 2:55 a.m.

Details

Message ID alpine.DEB.2.20.1703170255280.6157@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph S. Myers March 17, 2017, 2:55 a.m.
As noted in bug 17786, MIPS o32 struct stat has the wrong type of
st_dev.  This patch XFAILs that test in the conformtest expectations
for this case (the test still fails after the patch because there's
also a similar issue for st_rdev that needs reporting and XFAILing
separately, and the bug should not be closed without an actual fix,
not just XFAILing).

Tested for mips with build-many-glibcs.py.  Committed.

2017-03-17  Joseph Myers  <joseph@codesourcery.com>

	[BZ #17786]
	* sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
	* conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
	mips-o32-linux.

Patch hide | download patch | download mbox

diff --git a/conform/data/sys/stat.h-data b/conform/data/sys/stat.h-data
index f7a944a..79293bf 100644
--- a/conform/data/sys/stat.h-data
+++ b/conform/data/sys/stat.h-data
@@ -26,7 +26,8 @@  type time_t
 
 type {struct stat}
 
-element {struct stat} dev_t st_dev
+// Bug 17786: st_dev has wrong type.
+xfail[mips-o32-linux]-element {struct stat} dev_t st_dev
 element {struct stat} ino_t st_ino
 element {struct stat} mode_t st_mode
 element {struct stat} nlink_t st_nlink
diff --git a/sysdeps/unix/sysv/linux/mips/mips32/Makefile b/sysdeps/unix/sysv/linux/mips/mips32/Makefile
new file mode 100644
index 0000000..0938f40
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/mips/mips32/Makefile
@@ -0,0 +1,4 @@ 
+ifeq ($(subdir),conform)
+# For bug 17786.
+conformtest-xfail-conds += mips-o32-linux
+endif