t / t0070-fundamental.shon commit Merge branch 'jc/apply-blank-at-eof-fix' into maint (e63f87a)
   1#!/bin/sh
   2
   3test_description='check that the most basic functions work
   4
   5
   6Verify wrappers and compatibility functions.
   7'
   8
   9. ./test-lib.sh
  10
  11test_expect_success 'character classes (isspace, isalpha etc.)' '
  12        test-ctype
  13'
  14
  15test_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
  20test_expect_success POSIXPERM '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
  26'
  27
  28test_done