t / t4006-diff-mode.shon commit more war on "sleep" in tests (713c79e)
   1#!/bin/sh
   2#
   3# Copyright (c) 2005 Junio C Hamano
   4#
   5
   6test_description='Test mode change diffs.
   7
   8'
   9. ./test-lib.sh
  10
  11test_expect_success \
  12    'setup' \
  13    'echo frotz >rezrov &&
  14     git update-index --add rezrov &&
  15     tree=`git write-tree` &&
  16     echo $tree'
  17
  18test_expect_success \
  19    'chmod' \
  20    'test_chmod +x rezrov &&
  21     git diff-index $tree >current'
  22
  23_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
  24_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
  25sed -e 's/\(:100644 100755\) \('"$_x40"'\) \2 /\1 X X /' <current >check
  26echo ":100644 100755 X X M      rezrov" >expected
  27
  28test_expect_success \
  29    'verify' \
  30    'test_cmp expected check'
  31
  32test_done