/[jscoverage]/trunk/tests/fatal.sh
ViewVC logotype

Diff of /trunk/tests/fatal.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 244 by siliconforks, Sun Oct 5 18:04:46 2008 UTC revision 307 by siliconforks, Mon Oct 13 06:12:55 2008 UTC
# Line 38  Line 38 
38    
39  rm -fr DIR  rm -fr DIR
40    
41    $VALGRIND jscoverage javascript-setter DIR > OUT 2> ERR && exit 1
42    test ! -s OUT
43    test -s ERR
44    diff --strip-trailing-cr javascript-setter.expected.err ERR
45    
46    rm -fr DIR
47    
48  $VALGRIND jscoverage 1 2 3 > OUT 2> ERR && exit 1  $VALGRIND jscoverage 1 2 3 > OUT 2> ERR && exit 1
49  test ! -s OUT  test ! -s OUT
50  test -s ERR  test -s ERR
# Line 96  Line 103 
103    
104  # huge JavaScript file  # huge JavaScript file
105  mkdir -p DIR  mkdir -p DIR
106  seq -f 'x = %g;' 1 65536 > DIR/big.js  perl -e 'for (1 .. 65536) {print "x = $_\n";}' > DIR/big.js
107  $VALGRIND jscoverage DIR DIR2 > OUT 2> ERR && exit 1  $VALGRIND jscoverage DIR DIR2 > OUT 2> ERR && exit 1
108  echo 'jscoverage: big.js: script has more than 65,535 lines' | diff - ERR  echo 'jscoverage: big.js: script has more than 65,535 lines' | diff --strip-trailing-cr - ERR
109    
110  rm -fr DIR DIR2 OUT ERR  rm -fr DIR DIR2 OUT ERR

Legend:
Removed from v.244  
changed lines
  Added in v.307

  ViewVC Help
Powered by ViewVC 1.1.24