Randy Kobes wrote:
I was just wondering if a consensus has been reached on the
issue of DOS short/long path names as used in the mp2 tests
(to recall, in some of the tests, one ends up comparing a
short path to a long path name, which fails as a string
comparison, but will pass if one converts them both to, eg,
the long path name). As it doesn't look like File::Spec is
intended to handle this sort of thing, as it involves
interaction with the file system to get the long path name,
there's a few options:
- wait for a wrapper around File::Spec to handle this
sort of thing?
- extend Apache::TestUtil to have a t_canonpath, like the
current t_catfile, which for Win32 uses
Win32::GetLongPathName() to convert to the long path name;
- rather than a t_canonpath and t_catfile (and possibly
other t_* functions as wrappers around File::Spec
functions), use a t_file_cmp() function which just returns
t_cmp for Unix and does the long path name
conversion/comparison for Win32?

I like the idea of t_file_cmp (perhaps call it t_filepath_cmp), since it'll hide all the platform specific issues from the test. But whatever you think is the best is up to you (as long as it doesn't add clutter to the tests themselves).


Thanks Randy

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to