/[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 226 by siliconforks, Fri Oct 3 02:28:50 2008 UTC revision 244 by siliconforks, Sun Oct 5 18:04:46 2008 UTC
# Line 18  Line 18 
18    
19  set -e  set -e
20    
21  trap 'rm -fr DIR OUT ERR' 1 2 3 15  trap 'rm -fr DIR DIR2 OUT ERR' 1 2 3 15
22    
23  export PATH=.:..:$PATH  export PATH=.:..:$PATH
24    
25  rm -fr DIR  rm -fr DIR DIR2
26    
27  $VALGRIND jscoverage javascript-xml DIR > OUT 2> ERR && exit 1  $VALGRIND jscoverage javascript-xml DIR > OUT 2> ERR && exit 1
28  test ! -s OUT  test ! -s OUT
# Line 94  Line 94 
94  # diff --strip-trailing-cr destination-is-existing-directory.expected.err ERR  # diff --strip-trailing-cr destination-is-existing-directory.expected.err ERR
95  rm -fr bar  rm -fr bar
96    
97  rm -fr DIR OUT ERR  # huge JavaScript file
98    mkdir -p DIR
99    seq -f 'x = %g;' 1 65536 > DIR/big.js
100    $VALGRIND jscoverage DIR DIR2 > OUT 2> ERR && exit 1
101    echo 'jscoverage: big.js: script has more than 65,535 lines' | diff - ERR
102    
103    rm -fr DIR DIR2 OUT ERR

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

  ViewVC Help
Powered by ViewVC 1.1.24