sourcehook/test/test1.cpp
changeset 118 38913a2fca7a
parent 117 e322da4af2d2
child 151 1667580b0c91
     1.1 --- a/sourcehook/test/test1.cpp	Mon Oct 03 17:20:22 2005 +0000
     1.2 +++ b/sourcehook/test/test1.cpp	Mon Oct 03 17:39:40 2005 +0000
     1.3 @@ -388,20 +388,15 @@
     1.4  
     1.5  bool TestBasic(std::string &error)
     1.6  {
     1.7 -
     1.8 -	// Simple test for ModuleInMemory:
     1.9 +	// Simple test for ModuleInMemory
    1.10  	//  1) &error should on the stack
    1.11  	//  2) 0 should not be mapped
    1.12 -	//  3) &error to -1 should not be mapped
    1.13  	ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(reinterpret_cast<char*>(&error), sizeof(error))));
    1.14  	ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(0, 1)));
    1.15 -	ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(reinterpret_cast<char*>(&error),
    1.16 -		(reinterpret_cast<std::string*>(-1) - &error) - 1)));
    1.17  
    1.18  	CHECK_STATES((&g_States,
    1.19  		new State_ModuleInMemory(true),
    1.20  		new State_ModuleInMemory(false),
    1.21 -		new State_ModuleInMemory(false),
    1.22  		NULL), "ModuleInMemory");
    1.23  
    1.24  	SourceHook::CSourceHookImpl g_SHImpl;