public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14233] New: Many of tst-*.c lack any description of the assertions they test
@ 2012-06-14  0:23 bugdal at aerifal dot cx
  2012-06-14 18:45 ` [Bug libc/14233] " joseph at codesourcery dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugdal at aerifal dot cx @ 2012-06-14  0:23 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14233

             Bug #: 14233
           Summary: Many of tst-*.c lack any description of the assertions
                    they test
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: bugdal@aerifal.cx
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


Browsing some of the tst-*.c files in glibc, I noticed that many lack any
comments about what requirement they're testing for. I'm not sure if this is a
"bug" strictly speaking, but it seems problematic in that:

1. It's difficult to audit/debug them and determine if they're actually testing
for what they were intended to test. This is especially problematic for tests
that involve (either as the subject of the test or as a side-difficulty of
testing) race conditions, where it may not be at all obvious where the races
are.
2. If a change introduces a bug, it may be hard to determine the cause without
reverse engineering the test to see what it was testing.
3. It would be nice to know if tests are asserting behavior required by the
standards, behavior required as part of the documented or unofficial
specification of glibc, undocumented behavior that known applications expect,
and/or quality of implementation issues.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-19 14:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-14  0:23 [Bug libc/14233] New: Many of tst-*.c lack any description of the assertions they test bugdal at aerifal dot cx
2012-06-14 18:45 ` [Bug libc/14233] " joseph at codesourcery dot com
2012-06-24 14:53 ` jsm28 at gcc dot gnu.org
2014-06-19 14:30 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).