liangdabiao / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Tests fail on Cygwin #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Cygwin: CYGWIN_NT-6.0 PCAdri 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

2 tests fail on Cygwin with following output 

INCR over 32bit value                                                  !!
ERROR expected
'17179869185'
but got
'1'
INCRBY over 32bit value with over 32bit increment                      !!
ERROR expected
'34359738368'
but got
'0'

I attached the make output.

Original issue reported on code.google.com by pangel....@gmail.com on 26 Sep 2009 at 1:09

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by anti...@gmail.com on 23 Oct 2009 at 12:46

GoogleCodeExporter commented 8 years ago
I can confirm this bug stil exists on "redis-1.02".

Original comment by jeroen.j...@gmail.com on 9 Nov 2009 at 10:55

GoogleCodeExporter commented 8 years ago
Compiled Redis with CYGWIN_NT-5.1.

The output of the make file is same as that of pangel.neu

While using python lib for Redis, the following error was found

>>r.set('a', 12345)
'OK'

Expected:
>>r.get('a')
'12345'

Observed:
>>r.get('a')
'1234'

but,
when
>>r.incr('a')
'12346'

Thanks

Original comment by sagarpa...@gmail.com on 9 Nov 2009 at 8:46

GoogleCodeExporter commented 8 years ago
I have just tried the trunk and it works fine. I am using the attached Makefile 
(I
had to change a couple of compiler flags to make redis compile) and all the 
tests pass.

Original comment by raff...@gmail.com on 3 Jan 2010 at 12:25

Attachments:

GoogleCodeExporter commented 8 years ago
Please show how you set up redis in cygwin. I do it but bash say that "make: 
command 
not found".
:(

Original comment by batogov...@gmail.com on 18 Jan 2010 at 3:41

GoogleCodeExporter commented 8 years ago
I just compiled redis-1.2.1 with the latest cygwin using the original Makefile 
and
the one from @raff367. Both times, I saw the 32-bit errors from above, and also 
the
test suite hangs on 

#163 PIPELINING stresser (also a regression for the old epoll bug)

m.

Original comment by swap...@gmail.com on 8 Feb 2010 at 12:24

GoogleCodeExporter commented 8 years ago
I have the same test hang on #163 PIPELINING stresser on the stable 1.2.4 
release.  
Redis hangs with 100% CPU usage.  Messages stop on console and it stops 
responding 
over the network.

I am on Cygwin 1.7.1-1 on Windows 7 X64.

However, it runs good enough for my internal dev environment.

Ironically, this is the least hassle I've ever had building something on Cygwin 
:)

Original comment by chief.te...@googlemail.com on 9 Mar 2010 at 2:23

GoogleCodeExporter commented 8 years ago
IIRC, Redis is meant for POSIX based systems, and even though Cygwin comes very 
close, getting things to work on both Cygwin and POSIX systems will be a pain. 
IMHO.

Original comment by snpan...@gmail.com on 31 Mar 2011 at 5:14

GoogleCodeExporter commented 8 years ago
Here is a solution/fix: 
http://code.google.com/p/redis/issues/detail?id=518

Original comment by vita...@gmail.com on 21 Jul 2011 at 8:47