diff options
| author | vincentdarley <vincentdarley> | 2003-10-13 16:48:05 (GMT) |
|---|---|---|
| committer | vincentdarley <vincentdarley> | 2003-10-13 16:48:05 (GMT) |
| commit | 71336f8c80d669eed9f808c12b67b754ba77ef54 (patch) | |
| tree | ccb9c39961e0f152b829dff8a1e6b47fcc6d99a3 /generic/tclTest.c | |
| parent | b79538dd18c6b798634528e29c5a0e1ed76c0fb8 (diff) | |
| download | tcl-71336f8c80d669eed9f808c12b67b754ba77ef54.zip tcl-71336f8c80d669eed9f808c12b67b754ba77ef54.tar.gz tcl-71336f8c80d669eed9f808c12b67b754ba77ef54.tar.bz2 | |
filesystem bug fixes
Diffstat (limited to 'generic/tclTest.c')
| -rw-r--r-- | generic/tclTest.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index 8f322fc..effa8a3 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTest.c,v 1.68 2003/10/08 14:24:41 dkf Exp $ + * RCS: @(#) $Id: tclTest.c,v 1.69 2003/10/13 16:48:06 vincentdarley Exp $ */ #define TCL_TEST @@ -6080,17 +6080,23 @@ TestReportOpenFileChannel(interp, fileName, mode, permissions) static int TestReportMatchInDirectory(interp, resultPtr, dirPtr, pattern, types) - Tcl_Interp *interp; /* Interpreter to receive results. */ - Tcl_Obj *resultPtr; /* Directory separators to pass to TclDoGlob. */ + Tcl_Interp *interp; /* Interpreter for error + * messages. */ + Tcl_Obj *resultPtr; /* Object to lappend results. */ Tcl_Obj *dirPtr; /* Contains path to directory to search. */ CONST char *pattern; /* Pattern to match against. */ Tcl_GlobTypeData *types; /* Object containing list of acceptable types. * May be NULL. */ { - TestReport("matchindirectory",dirPtr, NULL); - return Tcl_FSMatchInDirectory(interp, resultPtr, - TestReportGetNativePath(dirPtr), pattern, - types); + if (types != NULL && types->type & TCL_GLOB_TYPE_MOUNT) { + TestReport("matchmounts",dirPtr, NULL); + return TCL_OK; + } else { + TestReport("matchindirectory",dirPtr, NULL); + return Tcl_FSMatchInDirectory(interp, resultPtr, + TestReportGetNativePath(dirPtr), pattern, + types); + } } static int TestReportChdir(dirName) |
