IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 15, 2005, 9:53:19 AM (21 years ago)
Author:
desonia
Message:

changed failure return from 256 to 64, so autotools better recognizes it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/runTest

    r3127 r3226  
    2121#                16    STDERR files did not compare
    2222#                32    Test driver doesn't exist or is not executable
    23 #                64    STDOUT captured contains error strings
    24 #               128    STDERR captured contains error strings
    25 #               256    Test driver did not return zero
     23#                64    Test driver did not return zero
    2624#
    2725#  SYNOSIS:  runTest testDriverName
    2826#
    2927#  $Revison:  $  $Name: not supported by cvs2svn $
    30 #  $Date: 2005-02-04 22:49:37 $
     28#  $Date: 2005-02-15 19:53:19 $
    3129#
    3230#  Copyright 2004 Maui High Performance Computering Center, University of Hawaii
     
    114112            # Display failure message with return value to user
    115113            if ( $? != 0 && ( $testFile !~ /^A/i ) ) {
    116                 print(
    117 "        Failed - Test Driver expected 0 return value (Return value $?)\n"
    118                 );
     114                print("Failed - Test Driver returned $?, expected 0.\n");
    119115            }
    120116            elsif ( $? == 0 && ( $testFile =~ /^A/i ) ) {
    121                 print(
    122 "        Failed - Test Driver expected abort (Return value $?)\n"
    123                 );
    124             }
    125             $exitValue |= 256;
     117                print("Failed - Test Driver returned $?, expected abort.\n");
     118            }
     119            $exitValue |= 64;
    126120        }
    127121        else {
Note: See TracChangeset for help on using the changeset viewer.