comp.lang.ada
 help / color / mirror / Atom feed
* errors needed
@ 1997-06-18  0:00 CHartbecke
  1997-06-18  0:00 ` Michael F Brenner
  0 siblings, 1 reply; 2+ messages in thread
From: CHartbecke @ 1997-06-18  0:00 UTC (permalink / raw)



I am currently working on a online repository of software testing examples
for my university, and am in desperate need of Ada sources. In anyone has
pieces of code that contains errors, I would be grateful if you could
either post them here (with some information about the error if possible),
or send them to jdavid@imappl.org.
Thank you




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

* Re: errors needed
  1997-06-18  0:00 errors needed CHartbecke
@ 1997-06-18  0:00 ` Michael F Brenner
  0 siblings, 0 replies; 2+ messages in thread
From: Michael F Brenner @ 1997-06-18  0:00 UTC (permalink / raw)



    > I am currently working on a online repository of software 
    > testing examples for my university, and am in desperate 
    > need of Ada sources.

A little more information, please, what kind of bug testing are you
researching? 

I can see several types of bugs which might be researched: 
specification violation, performance inadequacy, 
lack of flexibility or maintainability, bug in a tool, 
link failures, integration errors,
semantic errors, syntax errors, 
and errors which Ada catches at compile time.

SPECIFICATION VIOLATION occurs when programs seem to work,
but do not fulfill their requirements; this can happen in
the several ways: 
failure to provide a back trace of an execution failure,
wrong algorithm, 
incorrect algorithm, 
wrong answer, 
failure to do what the requirement stated, 
failure to meet precondition,
failure to establish postcondition, 
failure to maintain the invariant condition, 
using an uninitialized object, 
invertible function which does not quite invert,
objects out of range,
numeric overflow,
unhandled exceptions, 
unintended unreachable states, and
the evile programmer-off-by-one error. 

PERFORMANCE INADEQUACIES include:
not running fast enough, 
failure to meet deadline, 
failure to terminate in a finite amount of time (loop or recursion)
failure to give user an estimate of time it will take,
failure to give user click response in a quarter of a second,
failure to give user status of long operation,
invalide estimate of the order of magnitude of an operation,
memory leakages. 

LACK OF FLEXIBILITY OR MAINTAINABILITY includes: 
too much coupling,
too little cohesion, 
too much aliasing,
bugs inserted by maintainers, 
not having hypertext on-line-searchable documentation. 

BUGS IN A  TOOL include: 
design features that are unpopular or inconvenient, 
slow code generation,
generating slow code,
bulky code generation, 
bulky run time library,
failure to optimize away constant calculations, 
lack of tail recursion optimization, 
generating code for unchecked conversions or attributes, 
compiler bugs, 
debugger.

LINK FAILURES include:
addressing code before it is elaborated,
importing non-existent code,
calling something by the wrong name.

INTEGRATION ERRORS include: 
requirements creep,
untested paths through the code, 
protocol vioations.

SEMANTIC ERRORS include:
type violations, 
subtype violations,
nesting violations, 
using non-existent objects or methods.

SYNTAX ERRORS include:
typos,
(shhh!) stylistic errors.

ERRORS which Ada catches at COMPILE time include:
all syntax and semantic errors,
some range, link, performance, integration errors, and flexibility errors,
etc.

I would be interested if anybody else thinks of any other categories of
errors to add to this list, since I too research bugs, bug testing,
and bug removal.




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

end of thread, other threads:[~1997-06-18  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-18  0:00 errors needed CHartbecke
1997-06-18  0:00 ` Michael F Brenner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox