Changeset 3633


Ignore:
Timestamp:
Aug 6, 2007, 9:36:36 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #574. Test program didn't report error properly

Location:
trunk/src/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/TestDirty.java

    r3626 r3633  
    7070    ok = ok && (id3 == id4);
    7171   
    72     TestReporter.test_list(3);
     72    ok = ok && TestReporter.test_list(caseInsensitive ? 3 : 4);
    7373   
    7474    // Test import raw data
  • trunk/src/test/TestReporter.java

    r3626 r3633  
    108108  }
    109109
    110   static void test_list(int expectedResults)
     110  static boolean test_list(int expectedResults)
    111111  {
    112112    DbControl dc = null;
     
    133133      ex.printStackTrace();
    134134      ok = false;
    135     }
    136     finally
    137     {
    138       if (dc != null) dc.close();
    139     }
     135      return false;
     136    }
     137    finally
     138    {
     139      if (dc != null) dc.close();
     140    }
     141    return true;
    140142  }
    141143 
Note: See TracChangeset for help on using the changeset viewer.