/[jscoverage]/trunk/tests/server-unreadable-directory.sh
ViewVC logotype

Diff of /trunk/tests/server-unreadable-directory.sh

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

revision 609 by siliconforks, Thu Sep 16 08:07:35 2010 UTC revision 610 by siliconforks, Fri Sep 24 20:35:36 2010 UTC
# Line 45  Line 45 
45  rm -fr DIR  rm -fr DIR
46  mkdir DIR  mkdir DIR
47  chmod 000 DIR  chmod 000 DIR
48  $VALGRIND jscoverage-server > OUT 2> ERR &  server_port=`perl unused-port.pl`
49    $VALGRIND jscoverage-server --port=$server_port > OUT 2> ERR &
50  server_pid=$!  server_pid=$!
 server_port=8080  
51    
52  wait_for_server http://127.0.0.1:8080/jscoverage.html  wait_for_server http://127.0.0.1:${server_port}/jscoverage.html
53    
54  echo 404 > EXPECTED  echo 404 > EXPECTED
55  ! curl -f -w '%{http_code}\n' http://127.0.0.1:8080/DIR/ 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' http://127.0.0.1:${server_port}/DIR/ 2> /dev/null > ACTUAL
56  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL

Legend:
Removed from v.609  
changed lines
  Added in v.610

  ViewVC Help
Powered by ViewVC 1.1.24