9692 SystemError: error return without exception set when trying to publish a package.
authorPeter Dennis - Sustaining Engineer <Peter.Dennis@Sun.COM>
Mon, 29 Jun 2009 22:44:45 +0100
changeset 1185 b6dc4f84900d
parent 1184 bacd0f436b30
child 1186 c793e5d17602
9692 SystemError: error return without exception set when trying to publish a package.
src/modules/liblist.c
src/tests/api/t_elf.py
--- a/src/modules/liblist.c	Tue Jun 30 07:26:17 2009 -0700
+++ b/src/modules/liblist.c	Mon Jun 29 22:44:45 2009 +0100
@@ -100,7 +100,7 @@
     void *info, void *info2)
 {
 	if (!lst)
-		return (-1);
+		return (0);
 
 	libnode_t *n = lst->head;
 
--- a/src/tests/api/t_elf.py	Tue Jun 30 07:26:17 2009 -0700
+++ b/src/tests/api/t_elf.py	Mon Jun 29 22:44:45 2009 +0100
@@ -20,7 +20,7 @@
 # CDDL HEADER END
 #
 
-# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 
 import unittest
@@ -95,6 +95,15 @@
 		if os.path.exists("/usr/lib/crti.o"):
 			elf.get_dynamic("/usr/lib/crti.o")
 
+		if os.path.exists("/usr/kernel/drv/fssnap"):
+			elf.get_dynamic("/usr/kernel/drv/fssnap")
+
+		if os.path.exists("/usr/kernel/drv/amd64/fssnap"):
+			elf.get_dynamic("/usr/kernel/drv/amd64/fssnap")
+
+		if os.path.exists("/usr/kernel/drv/sparcv9/fssnap"):
+			elf.get_dynamic("/usr/kernel/drv/sparcv9/fssnap")
+
 
 		self.assertRaises(OSError, elf.get_dynamic, "/does/not/exist")
 
@@ -124,6 +133,15 @@
 		if os.path.exists("/usr/lib/crti.o"):
 			elf.get_info("/usr/lib/crti.o")
 
+		if os.path.exists("/usr/kernel/drv/fssnap"):
+			elf.get_info("/usr/kernel/drv/fssnap")
+
+		if os.path.exists("/usr/kernel/drv/amd64/fssnap"):
+			elf.get_info("/usr/kernel/drv/amd64/fssnap")
+
+		if os.path.exists("/usr/kernel/drv/sparcv9/fssnap"):
+			elf.get_info("/usr/kernel/drv/sparcv9/fssnap")
+
 		self.assertRaises(OSError, elf.get_info, "/does/not/exist");