1 |
#!/bin/sh |
#!/bin/sh |
2 |
# fatal.sh - test various fatal errors |
# fatal.sh - test various fatal errors |
3 |
# Copyright (C) 2007, 2008 siliconforks.com |
# Copyright (C) 2007, 2008, 2009 siliconforks.com |
4 |
# |
# |
5 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
6 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
105 |
mkdir -p DIR |
mkdir -p DIR |
106 |
perl -e 'for (1 .. 65536) {print "x = $_\n";}' > 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 --strip-trailing-cr - ERR |
echo 'jscoverage: file big.js contains more than 65,535 lines' | diff --strip-trailing-cr - ERR |
109 |
|
|
110 |
rm -fr DIR DIR2 OUT ERR |
rm -fr DIR DIR2 OUT ERR |