From f5397d936f5dc85813d1d6d50cf5f7d6ba9716c8 Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 19 Dec 2008 23:55:53 +0000 Subject: 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 --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index f00ce3c..7eb9541 100755 --- a/test.py +++ b/test.py @@ -43,9 +43,9 @@ random.shuffle(sections) total = 0 success = 0 for dev in devices: - sys.stdout.write(" * Testing %s..."%dmidecode.get_dev()); sys.stdout.flush() + sys.stdout.write(" * Testing %s..."%dev); sys.stdout.flush() total += 1 - if dmidecode.set_dev(dev): + if dmidecode.set_dev(dev) and dmidecode.get_dev() == dev: success += 1 sys.stdout.write("...\n") for i in types: -- cgit