summaryrefslogtreecommitdiff
path: root/t/perf/p0000-perf-lib-sanity.sh
diff options
context:
space:
mode:
authorJiang Xin <worldhello.net@gmail.com>2012-03-16 12:18:07 (GMT)
committerJiang Xin <worldhello.net@gmail.com>2012-03-16 12:18:07 (GMT)
commitd90b16ed421eb51fc4d7c6bda5f3332cc2e3aece (patch)
tree2d90d25ecbe794492f0fb267f31af8a1f646327d /t/perf/p0000-perf-lib-sanity.sh
parent6672dc8e694f412090417a95cd6cd4b2b5be6da1 (diff)
parent0e2d57fd50f61e668be3180bc8f25991ea88aa8c (diff)
downloadgit-d90b16ed421eb51fc4d7c6bda5f3332cc2e3aece.zip
git-d90b16ed421eb51fc4d7c6bda5f3332cc2e3aece.tar.gz
git-d90b16ed421eb51fc4d7c6bda5f3332cc2e3aece.tar.bz2
Merge v1.7.10-rc0 for git l10n update
Diffstat (limited to 't/perf/p0000-perf-lib-sanity.sh')
-rwxr-xr-xt/perf/p0000-perf-lib-sanity.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/perf/p0000-perf-lib-sanity.sh b/t/perf/p0000-perf-lib-sanity.sh
index 2ca4aac..cf8e1ef 100755
--- a/t/perf/p0000-perf-lib-sanity.sh
+++ b/t/perf/p0000-perf-lib-sanity.sh
@@ -38,4 +38,18 @@ test_expect_success 'test_export works with weird vars' '
test "$bar" = "weird # variable"
'
+test_perf 'important variables available in subshells' '
+ test -n "$HOME" &&
+ test -n "$TEST_DIRECTORY" &&
+ test -n "$TRASH_DIRECTORY" &&
+ test -n "$GIT_BUILD_DIR"
+'
+
+test_perf 'test-lib-functions correctly loaded in subshells' '
+ : >a &&
+ test_path_is_file a &&
+ : >b &&
+ test_cmp a b
+'
+
test_done