2 * @file Bug_3500_Regression_Test.cpp
4 * Reproduces the problems reported in bug 3500:
5 * http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=3500
7 * @author Bill Rizzi <rizzi@softserv.com>
10 #include "ace/OS_NS_sys_mman.h"
11 #include "ace/SString.h"
12 #include "test_config.h"
15 run_main (int, ACE_TCHAR
*[])
17 ACE_START_TEST (ACE_TEXT ("Bug_3500_Regression_Test"));
21 #if defined(ACE_WIN32) && !defined (ACE_LACKS_MMAP)
22 ACE_HANDLE handle
= ACE_INVALID_HANDLE
;
23 ACE_TString
name(ACE_TEXT ("Bug3500"));
26 ACE_OS::mmap(0, // addr
28 PAGE_READWRITE
, // prot
30 ACE_INVALID_HANDLE
, // file_handle
32 &handle
, // file_mapping
34 name
.c_str()); // shared memory name
36 if (mmap
== MAP_FAILED
)
45 ACE_TEXT ("ACE_OS::mmap() %p\n"),
46 ACE_TEXT ("failed")));