]>
Commit | Line | Data |
---|---|---|
b4285c71 RS |
1 | #!/bin/sh |
2 | ||
3 | test_description='check that the most basic functions work | |
4 | ||
5 | ||
6 | Verify wrappers and compatibility functions. | |
7 | ' | |
8 | ||
9 | . ./test-lib.sh | |
10 | ||
11 | test_expect_success 'character classes (isspace, isalpha etc.)' ' | |
e4998944 | 12 | test-tool ctype |
b4285c71 RS |
13 | ' |
14 | ||
6cf6bb3e AE |
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 | |
18 | ' | |
19 | ||
b3b8ceb4 | 20 | test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints filename' ' |
6cf6bb3e AE |
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 | |
26 | ' | |
27 | ||
253b27f1 DW |
28 | test_expect_success 'git_mkstemps_mode does not fail if fd 0 is not open' ' |
29 | git commit --allow-empty -m message <&- | |
30 | ' | |
31 | ||
c9184159 RJ |
32 | test_expect_success 'check for a bug in the regex routines' ' |
33 | # if this test fails, re-build git with NO_REGEX=1 | |
949782d8 | 34 | test-regex --bug |
c9184159 RJ |
35 | ' |
36 | ||
b4285c71 | 37 | test_done |