summaryrefslogtreecommitdiff
path: root/test/example.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/example.bats')
-rw-r--r--test/example.bats6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/example.bats b/test/example.bats
index 5acd1ad..98b6212 100644
--- a/test/example.bats
+++ b/test/example.bats
@@ -16,5 +16,9 @@ load test_helper
@test "produces an error" {
run rm blah
- assert_failure $'rm: blah: No such file or directory'
+ if [[ "$OSTYPE" == "darwin"* ]]; then
+ assert_failure $'rm: blah: No such file or directory'
+ else
+ assert_failure $'rm: cannot remove \'blah\': No such file or directory'
+ fi
}