Sha256: a13ee53d27b5b570a82798a5c150e20c4c2daf2c1e9424bc88f02b455e0edfe2

Contents?: true

Size: 1.48 KB

Versions: 38

Compression:

Stored size: 1.48 KB

Contents

#####################################################################
# tc_debug.rb
#
# Test case for the Windows::Debug module.
#####################################################################
require "windows/debug"
require "test/unit"

class DebugFoo
   include Windows::Debug
end

class TC_Windows_Debug < Test::Unit::TestCase
   def setup
      @foo = DebugFoo.new
      @ver = `ver`.chomp
   end
   
   def test_method_constants
      assert_not_nil(DebugFoo::ContinueDebugEvent)
      assert_not_nil(DebugFoo::DebugActiveProcess)
      assert_not_nil(DebugFoo::DebugBreak)
      assert_not_nil(DebugFoo::FatalExit)
      assert_not_nil(DebugFoo::FlushInstructionCache)
      assert_not_nil(DebugFoo::GetThreadContext)
      assert_not_nil(DebugFoo::GetThreadSelectorEntry)
      assert_not_nil(DebugFoo::IsDebuggerPresent)
      assert_not_nil(DebugFoo::OutputDebugString)
      assert_not_nil(DebugFoo::ReadProcessMemory)
      assert_not_nil(DebugFoo::SetThreadContext)
      assert_not_nil(DebugFoo::WaitForDebugEvent)
      assert_not_nil(DebugFoo::WriteProcessMemory)
   end

   def test_method_constants_xp_or_later
      if @ver =~ /XP/
         assert_not_nil(DebugFoo::CheckRemoteDebuggerPresent)
         assert_not_nil(DebugFoo::DebugActiveProcessStop)
         assert_not_nil(DebugFoo::DebugBreakProcess)
         assert_not_nil(DebugFoo::DebugSetProcessKillOnExit)
      end
   end

   def teardown
      @foo = nil
      @ver = nil
   end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
windows-pr-1.2.2 test/tc_debug.rb
windows-pr-1.2.1 test/tc_debug.rb
windows-pr-1.2.0 test/tc_debug.rb
windows-pr-1.1.2 test/tc_debug.rb
windows-pr-1.1.1 test/tc_debug.rb
windows-pr-1.1.0 test/tc_debug.rb
windows-pr-1.0.9 test/tc_debug.rb
windows-pr-1.0.8 test/tc_debug.rb
windows-pr-1.0.7 test/tc_debug.rb
windows-pr-1.0.6 test/tc_debug.rb
windows-pr-0.8.0 test/tc_debug.rb
windows-pr-0.8.4 test/tc_debug.rb
windows-pr-0.8.7 test/tc_debug.rb
windows-pr-0.8.5 test/tc_debug.rb
windows-pr-0.7.2 test/tc_debug.rb
windows-pr-0.7.4 test/tc_debug.rb
windows-pr-0.7.1 test/tc_debug.rb
windows-pr-0.7.3 test/tc_debug.rb
windows-pr-0.8.1 test/tc_debug.rb
windows-pr-0.8.2 test/tc_debug.rb