Unit tests fail on 32-bit.
Bug #1500224 reported by
Traumflug
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Medium
|
Bert Timmerman |
Bug Description
From IRC:
[16:51] <bert> ERROR:pcb-
[16:51] <bert> /bin/sh: line 5: 3554 Aborted (core dumped) ${dir}$tst
[16:51] <bert> FAIL: unittest
It happens on 32-bit machines, only. Using the --enable-coord32 configure flag on a 64-bit machine doesn't expose the bug, either.
Changed in pcb: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → next-bug-release |
Changed in pcb: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → Bert Timmerman (bert-timmerman) |
Changed in pcb: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Created a branch with diagnostic code, LP1500224.
On a 64-bit machine it reports
- - - - - test-unit:
/pcb-printf/
sizeof(double) = 8 test-printf: OK
suffix m in_suffix m printf_code f
scale_factor 0.001000 default_prec 5
step_tiny 0.000500 step_small 0.005000
step_medium 0.025000 step_huge 2.500000
base 1000000.000000
result 1000000000.000000
Coord result 1000000000
OK
/pcb-printf/
- - - - -
On a 32-bit machine it reports
- - - - - printf. c:810:pcb_ printf_ test_unit: assertion failed (c[0] == 1000000000): (999999999 == 1000000000)
sizeof(double) = 8
suffix m in_suffix m printf_code f
scale_factor 0.001000 default_prec 5
step_tiny 0.000500 step_small 0.005000
step_medium 0.025000 step_huge 2.500000
base 1000000.000000
result 1000000000.000000
Coord result 1000000000
**
ERROR:pcb-
/bin/sh: line 5: 12630 Aborted (core dumped) ${dir}$tst
FAIL: unittest
==================
1 of 1 test failed
==================
- - - - -
Weird. The diagnostic code should do the exactly same as the unit test.