* child_info.h: Modify magic number.
* dcrt0.cc (_cygwin_testing): Define. (_dll_crt0): Set _cygwin_testing if CYGWIN_TESTING environment variable exists. Don't issue "conflicting versions" error if _cygwin_testing is true. * shared.cc (shared_name): Use _cygwin_testing global rather than testing the environment. * syscalls.cc (_write): Remove debugging info.
This commit is contained in:
@@ -43,10 +43,10 @@ char * __stdcall
|
||||
shared_name (const char *str, int num)
|
||||
{
|
||||
static NO_COPY char buf[MAX_PATH] = {0};
|
||||
char envbuf[6];
|
||||
extern bool _cygwin_testing;
|
||||
|
||||
__small_sprintf (buf, "%s.%s.%d", cygwin_version.shared_id, str, num);
|
||||
if (GetEnvironmentVariable ("CYGWIN_TESTING", envbuf, 5))
|
||||
if (!_cygwin_testing)
|
||||
strcat (buf, cygwin_version.dll_build_date);
|
||||
return buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user