Skip to contentSkip to conversation

make test errors (mandrake 2.4.19-9mdk)

LARTC raptor 2 participants 4 messages Sep 19, 2002 – Sep 20, 2002

lore
Share & tools
lore

raptor

author
#0 lore raw

This time errors are real :")
tc-htb patch applied... (as specified in the README) tcng-htb patch applied .....

For thouse that don't know... i have made manual review of the mandrake kernel and the latest htb-kernel-patches... and it seems they are in...
SO ANYONE USING MANDRAKE SHOULD NOT NEED TO APPLY HTB-KERNEL-PATCHES FOR 2.4.19-9mdk. FYI : after maximum a week Mandrake9.0 will be out (it is with this kernel).
=======================================

compound construct with assignment: PASSED
compound construct with multiple assignments: PASSED
compound construct must end with semicolon: PASSED (warning: output differs)
Standard output:
| <stdin>:17: syntax error near "}"
Reference output:
| <stdin>:1: syntax error near "}"
compound construct may end with multiple semicolons: PASSED
compound construct requires semicolon after assignment: PASSED (warning: output differs)
Standard output:
| <stdin>:17: syntax error near "$x"
Reference output:
| <stdin>:1: syntax error near "$x"
compound construct allows multiple semicolons after assignment: PASSED compound construct warns about unused variables: FAILED

File:      tests/compound
Command:   tcc -c 2>&1
Input:     _in.17273
Output:    _out.17273
Reference: _ref.17273
scripts/runtests.sh: line 2: 17297 Broken pipe             cat
scripts/run-all-tests: line 14: 28441 Broken pipe             cat $n
make: *** [test] Error 1

[root@qos tcng]# cat _in.17273
$a = { $x = 13; 7; };
field foo = raw if $a = $a;
[root@qos tcng]# cat _ref.17273
<stdin>:1: warning: unused variable x
[root@qos tcng]# cat _out.17273
<stdin>:17: warning: unused variable x
[root@qos tcng]#
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 1 line · raptor

This time errors are real :")

That weird cpp strikes again. Which CPP version is this anyway ?

Does putting
#line 0
or
#line 1
at the end of tcng/tcc/default.tc help or at least change the output in any way ? (According to the CPP 2.95.3, 3.1.1 and 3.2 docs, #line N should set the line number of the _next_ line to N, but CPP "2.96" (RH) and 3.1 set the line number of the current line, so the next line becomes N+1.)

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#2 lore raw
In reply to raptor

Werner Almesberger <[email protected]> wrote:

|raptor wrote:
|> This time errors are real :")
|
|That weird cpp strikes again. Which CPP version is this anyway ?
|
|Does putting
|#line 0

]- nope.. it seems worst wit it
|or
|#line 1
]- definetly helps,.. 'man u have put hell-of-a-tests, no bug can escape :")
This time i got up to here... Now I'm going to get 8x :") (i was just going to ask when htb-tcng patch will be in :") )

check syntax of examples-ng/dsmark+policing: PASSED check syntax of examples-ng/ef-prio: PASSED
Standard error:
| warning: real MTU (guessed 1510) may be larger than 1500
check syntax of examples-ng/gred: PASSED
check syntax of examples-ng/ingress: PASSED
check syntax of examples-ng/pfifo_fast: PASSED check syntax of examples-ng/prio+fw: PASSED
......................

SLB without MPU (ext) : PASSED
SLB with MPU (ext): FAILED
File:      tests/mpu
Command:   tcsim | tcsim_filter -c
Input:     _in.30580
Output:    _out.30580
Reference: _ref.30580
scripts/runtests.sh: line 2: 30604 Broken pipe             cat
scripts/run-all-tests: line 14: 11902 Broken pipe             cat $n
make: *** [test] Error 1

[root@qos tcng]#

[root@qos tcng]# cat _in.30580
dev eth0 10Gbps {
egress { /* Note: cbs must be >= mpu */
$p = SLB(cir 500kbps,cbs 3kB,mpu 2500B);

class (<>) if SLB_else_drop($p);
}
}

every 0.01s send 0 x 1250 /* 1 Mbps */
time 1s
end
[root@qos tcng]# cat _out.30580
D 13
E 102
[root@qos tcng]# cat _ref.30580
D 26
E 102
[root@qos tcng]#

|at the end of tcng/tcc/default.tc help or at least change the
|output in any way ? (According to the CPP 2.95.3, 3.1.1 and
|3.2 docs, #line N should set the line number of the _next_ line
|to N, but CPP "2.96" (RH) and 3.1 set the line number of the
|current line, so the next line becomes N+1.)

]-
[root@qos tcng]# cpp -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/specs
gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/cpp0 -lang-c -v -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__NO_INLINE__ -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -
GNU CPP version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk) (cpplib) (i386 Linux/ELF)
...
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to raptor
Quoted 2 lines · raptor

|#line 1
]- definetly helps,..

Finally !! The workaround will be in 8y.

Quoted 1 line

'man u have put hell-of-a-tests, no bug can escape :")

And then, they mutate ... :)

Quoted 3 lines

check syntax of examples-ng/ef-prio: PASSED
Standard error:
| warning: real MTU (guessed 1510) may be larger than 1500

Those MTU warnings are normal, although I should probably get rid of them eventually.

Quoted 2 lines

SLB without MPU (ext) : PASSED
SLB with MPU (ext): FAILED

Hmm, that one is a bit surprising ... can you please try the test with the following changes:

| $p = SLB(cir 500kbps,cbs 3kB);
                              ---------- (mpu removed)
| every 0.01s send 0 x 2500	/* 1 Mbps */
                       ---- (2500 instead of 1250)
Quoted 1 line

GNU CPP version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)

Looks like the same version of cpp as used by Red Hat. Odd ...

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/