Poor reporting of schematic load errors
Bug #700448 reported by
Peter TB Brett
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Fix Released
|
High
|
Unassigned |
Bug Description
libgeda doesn't signal an error when a schematic or symbol file contains invalid syntax, or when any other load error is encountered.
For example, gnetlist succeeds even when the input schematics specified contain unusable garbage.
Steps to reproduce:
echo GARBAGE > test.sch;
if gnetlist -ggeda test.sch > /dev/null 2>/dev/null
then
echo Succeeded
else
echo Failed
fi
Expected output:
Failed
Actual output:
Succeeded
Thanks to Peter Clifton for pointing out this problem.
summary: |
- gnetlist succeeds with garbage schematics + Poor reporting of schematic load errors |
description: | updated |
description: | updated |
tags: | added: gschem |
tags: | added: gnetlist |
Changed in geda: | |
importance: | Undecided → Medium |
Changed in geda: | |
assignee: | Eivind Kvedalen (eivind-z) → Peter TB Brett (peter-b) |
Changed in geda: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This turns out to be a problem with libgeda -- the file loading API doesn't signal an error. o_read_buffer() needs to be improved to be able to indicate that parsing input failed.