summaryrefslogtreecommitdiff
path: root/infrastructure
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-11-30 23:18:04 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-11-30 23:18:04 +0000
commit15fe4e977048085cb929a50e0561b223cf95c9a9 (patch)
treea377f06f289bb78fb608da11f43ba52cb961e4d0 /infrastructure
parenta1fc249484f3c88630901828918c72897dd2c18d (diff)
Merged martin/xattr at r5 to trunk
Diffstat (limited to 'infrastructure')
-rw-r--r--infrastructure/tests/common_tests.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/infrastructure/tests/common_tests.pl b/infrastructure/tests/common_tests.pl
index 454f09c7..04a0ae30 100644
--- a/infrastructure/tests/common_tests.pl
+++ b/infrastructure/tests/common_tests.pl
@@ -143,6 +143,22 @@ int main(int argc, char *argv[])
}
__E
+ # see if FS extended attributes support is available
+ do_test('Name' => 'Linux XATTR support',
+ 'RunCode' => 0,
+ 'SuccessCompileFlags' => '-DPLATFORM_HAVE_XATTR',
+ 'Code' => <<__E);
+#include <cstdlib>
+#include <sys/types.h>
+#include <sys/xattr.h>
+int main(int argc, char *argv[])
+{
+ const char* filename = "file";
+ listxattr(filename, NULL, 0);
+ return 0;
+}
+__E
+
}
# USE_MALLOC doesn't work on some < gcc3 platforms