From 3241a6f41429062d55b95b02c25a38ee7dea25b0 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 23 Jul 2010 13:15:24 +0000 Subject: [PATCH] This test currently only works on linux. Simply returning 77 from everywhere and compiling the rest of the test out helps reduce some MTT stderr chatter. This commit was SVN r23485. --- test/util/opal_path_nfs.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/test/util/opal_path_nfs.c b/test/util/opal_path_nfs.c index 2f5a066008..49b073c41e 100644 --- a/test/util/opal_path_nfs.c +++ b/test/util/opal_path_nfs.c @@ -11,6 +11,7 @@ * All rights reserved. * Copyright (c) 2010 Oak Ridge National Laboratory. * All rights reserved. + * Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -33,6 +34,15 @@ #define DEBUG */ +#if !defined(__linux__) +/* This test currently only works on Linux +int main(int argc, char* argv[]) +{ + return 77; +} + +#else /* __linux__ */ + static void test(char* file, bool expect); static void get_mounts (int * num_dirs, char ** dirs[], bool ** nfs); @@ -57,15 +67,10 @@ int main(int argc, char* argv[]) i, argv[i], opal_path_nfs (argv[i]) ? "Yes": "No"); } -#ifdef __linux__ get_mounts (&num_dirs, &dirs, &nfs); while (num_dirs--) { test (dirs[num_dirs], nfs[num_dirs]); } -#endif - -#ifdef __WINDOWS__ -#endif /* All done */ return test_finalize(); @@ -167,3 +172,4 @@ out: *nfs = nfs_tmp; } +#endif /* __linux__ */