Skip to content

Commit

Permalink
Fix testlib
Browse files Browse the repository at this point in the history
  • Loading branch information
wkennington committed Aug 10, 2013
1 parent 477fe44 commit 56b72ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/lib
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ test_eq () {

# Setup the testing environment
. "$(readlink -f $(dirname $(readlink -f $HOME/.xinitrc))/../)/lib/loader"
[ -z "$RUNNING_SHELL" ] && RUNNING_SHELL="$(shell)"
test_clear
1 change: 0 additions & 1 deletion test/test
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
. "$(readlink -f $(dirname $(readlink -f $HOME/.xinitrc))/../)/test/lib"
[ -z "$RUNNING_SHELL" ] && RUNNING_SHELL="$(shell)"
load_all test/tests
test_run_all
3 changes: 2 additions & 1 deletion test/testlib
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ success_test () {
return 0
}
fail_test () {
echo "This is the error"
return 1
}
test_run success_test
test_run fail_test
echo ""

# Register tests
test_register fail_test
test_register success_test
test_register fail_test
test_run_all

0 comments on commit 56b72ef

Please sign in to comment.