Re: cdb self-tests, was Re: GCC 3.2 errors
Chris Wilkes <[email protected]> Sun, 27 Jul 2003 08:00:59 -0700
| Newsgroups | gmane.comp.djb.cdb |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jul 27, 2003 at 02:03:26PM +0200, clemens fischer wrote: > * Chris Wilkes: > > > On Sun, Jul 27, 2003 at 01:56:51AM +0800, Neo Wee Teck wrote: > >> Anyone have the problem compiling cdb with GCC 3.2? > > > > It would be helpful if you posted your error messages. > > ... and the operating system! which you "forgot" as well. especially > as this topic may well be related to the OS used. Doh! Its a pretty much straight out of the box Red Hat 9.0 install. # uname -a Linux cjwtest 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon i386 GNU/Linux # gcc --version gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) # csh --version tcsh 6.12.00 (Astron) 2002-07-23 (i386-intel-linux) options 8b,nls,dl,al,kan,rh,color,dspm,filec # bash --version GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu) # rpm -qa | grep ^glib glib-1.2.10-10 glibc-common-2.3.2-27.9 glibc-devel-2.3.2-27.9 glib2-2.2.1-1 glib2-devel-2.2.1-1 glibc-2.3.2-27.9 glibc-kernheaders-2.4-8.10 glib-devel-1.2.10-10 > > Looking at rts.tests that test is: > > echo '--- cdbmake handles nomem' > > csh -cf 'repeat 5000 echo "+3,5:one->Hello"' \ > > | softlimit -d 50000 cdbmake test.cdb test.tmp > > echo $? > > i'm running freebsd-4.8 and have frequently experienced problems with > automatic test-procedures, which tend to be linux-centric. since the > test-case here is memory consumption, you should lower the softlimit > in rts.tests. also, i'd try to surround the csh(1) command with > double quotes and the inner echo argument for cdb with single quotes, > in case there's some misunderstanding on cshs part of what constitutes > shell-metacharacters: > > csh -cf "repeat 5000 echo '+3,5:one->Hello'" | softlimit ... With bash I needed to send an extra newline at the end: # echo "+3,5:one->Hello" | cdbmake test.cdb test.tmp ; echo $? cdbmake: fatal: unable to read input: bad format 111 # echo -e "+3,5:one->Hello\n" | cdbmake test.cdb test.tmp ; echo $? 0 I can't figure out how to do that in csh, or more exactly tcsh: # csh # echo -e "Hello World\n" -e Hello World\n Which would solve the problem. Chris