Skip to content

Commit f5397d9

Browse files
author
nima
committed
Further testing shows that the segfault does not occur when the device is
/dev/mem, but does so for all images (where requested type is 127), suggesting that the problem could be with the image or surrounding processes. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@132 abc39116-655e-4be6-ad55-d661dc543056
1 parent 7433f78 commit f5397d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
total = 0
4444
success = 0
4545
for dev in devices:
46-
sys.stdout.write(" * Testing %s..."%dmidecode.get_dev()); sys.stdout.flush()
46+
sys.stdout.write(" * Testing %s..."%dev); sys.stdout.flush()
4747
total += 1
48-
if dmidecode.set_dev(dev):
48+
if dmidecode.set_dev(dev) and dmidecode.get_dev() == dev:
4949
success += 1
5050
sys.stdout.write("...\n")
5151
for i in types:

0 commit comments

Comments
 (0)