[Box Backup-commit] COMMIT r3444 - box/trunk/test/bbackupd

subversion at boxbackup.org subversion at boxbackup.org
Sat Dec 6 16:41:00 GMT 2014


Author: chris
Date: 2014-12-06 16:41:00 +0000 (Sat, 06 Dec 2014)
New Revision: 3444

Modified:
   box/trunk/test/bbackupd/testbbackupd.cpp
Log:
Don't fail tests if running on a NetBSD system with no xattr support.


Modified: box/trunk/test/bbackupd/testbbackupd.cpp
===================================================================
--- box/trunk/test/bbackupd/testbbackupd.cpp	2014-12-06 16:40:31 UTC (rev 3443)
+++ box/trunk/test/bbackupd/testbbackupd.cpp	2014-12-06 16:41:00 UTC (rev 3444)
@@ -116,6 +116,16 @@
 	ssize_t xattrNamesBufferSize = llistxattr(filename, NULL, 0);
 	if(xattrNamesBufferSize < 0)
 	{
+#if HAVE_DECL_ENOTSUP
+		if(errno == ENOTSUP)
+		{
+			// Pretend that it worked, leaving an empty map, so
+			// that the rest of the attribute comparison will
+			// proceed as normal.
+			return true;
+		}
+#endif // HAVE_DECL_ENOTSUP
+
 		return false;
 	}
 	else if(xattrNamesBufferSize > 0)




More information about the Boxbackup-commit mailing list