From: David Vallner Date: 2006-12-11T00:26:07+09:00 Subject: Re: autotest broken on winxp? --------------enig9B592170808A2CB5C2D26DEC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Daniel Berger wrote: > David Vallner wrote: >> Jeff wrote: >>> I haven't tried autotest on windows for a long time, but I thought it= >>> worked back then. Now, I get this error: >>> >>> C:\dev\row>autotest >>> c:/program >>> files/ruby/lib/ruby/gems/1.8/gems/ZenTest-3.4.2/lib/autotest.rb:294:i= n >>> `expand_path': couldn't find HOME environment -- expanding >>> `~/.autotest' (ArgumentError) >>> from c:/program >> >> Do you have the HOME environment variable set? >> >> From ri File.expand_path: >> >> The given pathname may start with a ``+~+'', which expands to the >> process owner's home directory (the environment variable +HOME+ must b= e >> set correctly). ``+~+_user_'' expands to the named user's home directo= ry. >> >> This is arguably a bug in File.expand_path rather than ZenTest. (On >> Windows systems, a fallback to ENV['HOME'] should be ENV['HOMEDRIVE'] = + >> ENV['HOMEPATH']. Wonder where you report those. >=20 > This has been discussed before. See http://tinyurl.com/y52hs3, among > others. >=20 Erght, I forgot about %USERPROFILE%. Well, that leaves the whole thing rather fuzzy. So, bug in autotest for relying on File.expand_path with a tilde, or Ruby for letting people rely on it? Or the usual, let's blame Microsoft *ducks*. David Vallner --------------enig9B592170808A2CB5C2D26DEC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFfCcCy6MhrS8astoRAiRkAJ9zySx6gl7vzD9oGDm08hH5G+xsggCeLLQP 35GWDF3ZKqn0vojEuMXp4r0= =emNO -----END PGP SIGNATURE----- --------------enig9B592170808A2CB5C2D26DEC--