summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-19 23:55:53 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-12-19 23:55:53 +0000
commitf5397d936f5dc85813d1d6d50cf5f7d6ba9716c8 (patch)
tree454aac54d3af7df3430b2eeec268c97ca99f4250
parent7433f78f76c509f7253fca4a44fb1867dbbb4092 (diff)
downloadpython-dmidecode-f5397d936f5dc85813d1d6d50cf5f7d6ba9716c8.tar.gz
python-dmidecode-f5397d936f5dc85813d1d6d50cf5f7d6ba9716c8.tar.xz
python-dmidecode-f5397d936f5dc85813d1d6d50cf5f7d6ba9716c8.zip
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
-rwxr-xr-xtest.py4
1 files changed, 2 insertions, 2 deletions
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: