[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#6404) tests return success on failure

Full_Name: Hallvard B Furuseth
Version: HEAD, RE24
Submission from: (NULL) (
Submitted by: hallvard

Some tests exit with the result code of the last failed command,
even when that is 0 (success) and the command should have failed:
    if test $RC != 10 ; then
        echo "ldapmodify should have returned referral ($RC)!"
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit 1
Fixing most cases I've spotted.

However someone who knows pcache should look at test020-proxycache.

It has 'exit 0's which look intentional, some which look like errors
(says "should have failed"), and some 'return $RC's which RC can be 0.