Skip to content

Commit

Permalink
[Truffle] Added a temporary mspec hack to fix stuff on Windows.
Browse files Browse the repository at this point in the history
Our File.expand_path always canonicalizes a path, whereas MRI's does not.  By forcing the entire SPEC_TEMP_DIR through File.expand_path, we'll get uniformly wrong behavior, making any String comparisons using SPEC_TEMP_DIR and file paths pass.
  • Loading branch information
nirvdrum committed Feb 11, 2015
1 parent f05bc37 commit 3b7081a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/truffle/truffle.mspec
Expand Up @@ -109,3 +109,6 @@ class MSpecScript
set :files, get(:language) + get(:core) + get(:rubysl)

end

# TODO (nirvdrum 11-Feb-15) Remove this hack once our File.expand_path doesn't translate '\' & '/' ... until then, we need feed this path through it to get consistent results in the specs.
SPEC_TEMP_DIR = File.expand_path "#{File.expand_path(Dir.pwd)}/rubyspec_temp"

0 comments on commit 3b7081a

Please sign in to comment.