Start preparing for 1.8.4.2
[alt-git.git] / t / t0070-fundamental.sh
blob986b2a8f2664b1734964049a5b24fc50cf938cfe
1 #!/bin/sh
3 test_description='check that the most basic functions work
6 Verify wrappers and compatibility functions.
9 . ./test-lib.sh
11 test_expect_success 'character classes (isspace, isalpha etc.)' '
12 test-ctype
15 test_expect_success 'mktemp to nonexistent directory prints filename' '
16 test_must_fail test-mktemp doesnotexist/testXXXXXX 2>err &&
17 grep "doesnotexist/test" err
20 test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints filename' '
21 mkdir cannotwrite &&
22 chmod -w cannotwrite &&
23 test_when_finished "chmod +w cannotwrite" &&
24 test_must_fail test-mktemp cannotwrite/testXXXXXX 2>err &&
25 grep "cannotwrite/test" err
28 test_expect_success 'check for a bug in the regex routines' '
29 # if this test fails, re-build git with NO_REGEX=1
30 test-regex
33 test_done