[Bug 1168] libchk outputs failures for Qt classes with inheritance

[email protected] Wed, 25 Jan 2006 03:52:06 -0500
Newsgroups gmane.linux.lsb.test-suite
Message-ID <[email protected]>


------- Additional Comments From [email protected]  2006-01-25 03:52 -------
libchk assumes that every symbol in the virtual table is actually a symbol in  
the library - this doesn't work for inlined virtual methods. My current 
solution is to just comment out the test for 1.4.1 and 1.4.3 because they 
report false positives.  
    
Index: classchk.c    
===================================================================    
RCS file: /cvsroot/lsb/tests/misc/libchk/classchk.c,v    
retrieving revision 1.54    
diff -u -3 -p -r1.54 classchk.c    
--- classchk.c  17 Jan 2006 16:41:38 -0000      1.54    
+++ classchk.c  25 Jan 2006 08:45:32 -0000    
@@ -270,6 +270,7 @@ check_class_info(ElfFile * file, char *l    
            /*    
             * 1.4.1) Make sure we found a named symbol at all.    
             */    
+            /*    
            if (!dlainfo.dli_saddr && classp->vtable[v].virtfuncs[j][0]) {    
              fprintf(stderr, "Class %s\n", classp->name);    
              TETJ_REPORT_INFO    
@@ -278,9 +279,10 @@ check_class_info(ElfFile * file, char *l    
                   classp->vtable[v].virtfuncs[j]);    
              test_failed = 1;    
            }    
+            */    
    
@@ -304,6 +306,7 @@ check_class_info(ElfFile * file, char *l    
            /*    
             * 1.4.3) Make sure we found a named symbol at all.    
             */    
+            /*    
            if (!dlainfo.dli_sname && classp->vtable[v].virtfuncs[j][0]) {    
              fprintf(stderr, "Class %s\n", classp->name);    
              TETJ_REPORT_INFO    
@@ -312,6 +315,7 @@ check_class_info(ElfFile * file, char *l    
                   classp->vtable[v].virtfuncs[j]);    
              test_failed = 1;    
            }    
+            */       
 
--    
Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.