win32utils-devel@rubyforge.org
2004-Mar-09 00:48 UTC
[Win32utils-devel] win32-mmap test suite
I just tried running tc_mmap.rb and noticed that something rather curious seems to happen. The call to Mmap.new in setup seems to cause the test suite to just exit without ever actually running the tests. I reduced the test suite to just this bit of code. This works, although the final test (TypeError) does not pass - no exception in thrown. This is 1.8.1 on Win2k. Any ideas? Dan PS - I added the VERSION constant to mmap.c :) if File.basename(Dir.pwd) == "test" require "ftools" Dir.chdir ".." Dir.mkdir("win32") unless File.exists?("win32") File.copy("mmap.so","win32") $:.unshift Dir.pwd end require "test/unit" require "win32/mmap" include Win32 class TC_Mmap < Test::Unit::TestCase def setup @a = 1 end def test_version assert_equal("0.0.1",Mmap::VERSION,"Bad version") end def test_new assert_nothing_raised{ Mmap.new("Foo") } assert_nothing_raised{ Mmap.new("Foo",16*1024) } assert_nothing_raised{ Mmap.new("Foo",16*1024,"test") } assert_raises(ArgumentError){ Mmap.new("Foo",16*1024,"test",true,true,10,true) } assert_raises(TypeError){ Mmap.new("Foo",1) } end end _________________________________________________________________ Get business advice and resources to improve your work life, from bCentral. http://special.msn.com/bcentral/loudclear.armx
win32utils-devel@rubyforge.org
2004-Mar-09 08:27 UTC
[Win32utils-devel] win32-mmap test suite
> I just tried running tc_mmap.rb and noticed that something rather curious > seems to happen. The call to Mmap.new in setup seems to cause the test > suite to just exit without ever actually running the tests. > > I reduced the test suite to just this bit of code. This works, althoughthe> final test (TypeError) does not pass - no exception in thrown. > > This is 1.8.1 on Win2k. > > Any ideas? > > DanI modified mmap.c and tc_mmap.rb for test suite Sorry for causing inconvience to you :) Regards, Park Heesob
win32utils-devel@rubyforge.org
2004-Mar-09 12:03 UTC
[Win32utils-devel] Re: win32-mmap test suite
>> I just tried running tc_mmap.rb and noticed that something rathercurious>> seems to happen. The call to Mmap.new in setup seems to cause thetest>> suite to just exit without ever actually running the tests. >> >> I reduced the test suite to just this bit of code. This works,although the>> final test (TypeError) does not pass - no exception in thrown. >> >> This is 1.8.1 on Win2k.>I modified mmap.c and tc_mmap.rb for test suite >Sorry for causing inconvience to you :)I checked out the latest source for win32-mmap at work and now I get segmentation faults when I try to run the tc_mmap.rb, or any of the test scripts, actually. And no, I didn''t futz with Dir.pwd this time. ;) Windows XP Pro Ruby 1.8.1 (Windows installer) VC++ 7.0 Could this be a Windows Installer issue? I suppose I can rebuild Ruby and find out - just thought I would mention it. Regards, Dan
win32utils-devel@rubyforge.org
2004-Mar-09 12:44 UTC
[Win32utils-devel] Re: win32-mmap test suite
> >> I just tried running tc_mmap.rb and noticed that something rather > curious > >> seems to happen. The call to Mmap.new in setup seems to cause the > test > >> suite to just exit without ever actually running the tests. > >> > >> I reduced the test suite to just this bit of code. This works, > although the > >> final test (TypeError) does not pass - no exception in thrown. > >> > >> This is 1.8.1 on Win2k. > > >I modified mmap.c and tc_mmap.rb for test suite > >Sorry for causing inconvience to you :) > > I checked out the latest source for win32-mmap at work and > now I get segmentation faults when I try to run the > tc_mmap.rb, or any of the test scripts, actually. And no, I > didn''t futz with Dir.pwd this time. ;) > > Windows XP Pro > Ruby 1.8.1 (Windows installer) > VC++ 7.0 > > Could this be a Windows Installer issue? I suppose I can > rebuild Ruby and find out - just thought I would mention it.I just rebuilt Ruby from scratch - same thing, so it''s not the Windows Installer version.'' Dan
win32utils-devel@rubyforge.org
2004-Mar-09 19:38 UTC
[Win32utils-devel] Re: win32-mmap test suite
> > > > I checked out the latest source for win32-mmap at work and > > now I get segmentation faults when I try to run the > > tc_mmap.rb, or any of the test scripts, actually. And no, I > > didn''t futz with Dir.pwd this time. ;) > > > > Windows XP Pro > > Ruby 1.8.1 (Windows installer) > > VC++ 7.0 > > > > Could this be a Windows Installer issue? I suppose I can > > rebuild Ruby and find out - just thought I would mention it. > > I just rebuilt Ruby from scratch - same thing, so it''s not the Windows > Installer version.'' > > Dan >In my Windows XP Pro Ruby 1.8.1 VC++ 6.0 It works fine. Did you try with VC++ 6.0? Park Heesob --MIME Multi-part separator--
win32utils-devel@rubyforge.org
2004-Mar-10 00:23 UTC
[Win32utils-devel] Re: win32-mmap test suite
----- Original Message -----> In my Windows XP Pro > Ruby 1.8.1 > VC++ 6.0 > It works fine. > > Did you try with VC++ 6.0? > > Park HeesobSame here ... works fine on Win XP (Home) Cool ! -- Shashank
win32utils-devel@rubyforge.org
2004-Mar-10 01:05 UTC
[Win32utils-devel] installing event.so
I tried installing win32-event and it installed in c:\ruby\...\i386-msvcrt. All other win32 modules were installed in c:\ruby\...\i386-msvcrt\win32. Any particular reason? -- Shashank -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/win32utils-devel/attachments/20040309/d624135f/attachment.htm