Skip to content

Commit

Permalink
Add a test case for chdir with relative path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Jun 4, 2013
1 parent 5de723b commit 1c0c6cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/run.sh
Expand Up @@ -265,13 +265,22 @@ if [ $? -ne 1 ]; then
exit 1
fi

# Test with full absolute path
$W --tests "$E/test-chdir.js" --chdir "$E/"

if [ $? -ne 0 ]; then
echo "tests should pass y"
exit 1
fi

# Test with relative path
$W --tests "$E/test-chdir.js" --chdir "example/"

if [ $? -ne 0 ]; then
echo "tests should pass y1"
exit 1
fi

# Test per test init function
$W --test-init-file "$E/init-test.js" --tests "$E/test-init-function.js"

Expand Down

0 comments on commit 1c0c6cb

Please sign in to comment.