Changeset 15 in tmcsimulator


Ignore:
Timestamp:
04/22/2016 03:04:30 PM (10 years ago)
Author:
jdalbey
Message:

ParamicsFileReaderTest?.java updated to work on Window or Unix.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE_metadata/NetBeans/TMCSim/build.xml

    r12 r15  
    1515<!-- Store the Subversion version string every time you do clean/build. --> 
    1616<target name="-pre-compile"> 
    17   <exec executable="svnversion" 
     17  <exec executable="svnversion" osfamily="unix" 
    1818    output="${workdir}/config/svn-version.txt"/> 
    1919    <echo file="${workdir}/config/svn-version.txt" append="true"> 
  • trunk/test/tmcsim/paramicscommunicator/ParamicsFileReaderTest.java

    r13 r15  
    9898                FileIOUpdate msg = (FileIOUpdate) obj; 
    9999                assertEquals("1", msg.ioID); 
    100                 assertEquals((long) 1 + kFileContents.length(), (long) msg.ioBytes); 
     100                // Windows and Unix have different EOL characters, so we have 
     101                // to approximate the answer here. 
     102                boolean result = kFileContents.length() - msg.ioBytes < 2; 
     103                assertTrue(result); 
    101104            } else if (obj instanceof Document) 
    102105            { 
Note: See TracChangeset for help on using the changeset viewer.