Merge branch 'th/git-diffall'
[gitweb.git] / t / perf / p0000-perf-lib-sanity.sh
index f8dd53670950089c6e982110b42dd79115b54607..cf8e1efce7cd29679c3ffdb2fa7d03489c38c1c9 100755 (executable)
@@ -38,9 +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
+       test_path_is_file a &&
+       : >b &&
+       test_cmp a b
 '
 
 test_done