Update of /cvsroot/libsysio/libsysio/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv550/tests
Modified Files:
Tag: RedStorm
test_stats.c
Log Message:
Support automount option, fully. Don't just *say* it's supported.
Index: test_stats.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/tests/test_stats.c,v
retrieving revision 1.3
retrieving revision 1.3.10.1
diff -u -w -b -B -p -r1.3 -r1.3.10.1
--- test_stats.c 9 Mar 2003 16:57:47 -0000 1.3
+++ test_stats.c 27 May 2003 12:37:53 -0000 1.3.10.1
@@ -72,6 +72,14 @@ unsigned mntflgs = 0;
void usage(void);
void do_stats(const char *path);
+#ifdef AUTOMOUNT_FILE_NAME
+#define EXTRA_AUTOMOUNT_OPT "a"
+#else
+#define EXTRA_AUTOMOUNT_OPT
+#endif
+
+const char *opts = EXTRA_AUTOMOUNT_OPT "m:r:";
+
int
main(int argc, char * const argv[])
{
@@ -81,7 +89,7 @@ main(int argc, char * const argv[])
/*
* Parse command-line args.
*/
- while ((i = getopt(argc, argv, "i:m:")) != -1)
+ while ((i = getopt(argc, argv, opts)) != -1)
switch (i) {
#ifdef AUTOMOUNT_FILE_NAME
|