xref: /freebsd/contrib/pjdfstest/tests/mkdir/03.t (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1#!/bin/sh
2# $FreeBSD: head/tools/regression/pjdfstest/tests/mkdir/03.t 211352 2010-08-15 21:24:17Z pjd $
3
4desc="mkdir returns ENAMETOOLONG if an entire path name exceeded {PATH_MAX} characters"
5
6dir=`dirname $0`
7. ${dir}/../misc.sh
8
9echo "1..3"
10
11nx=`dirgen_max`
12nxx="${nx}x"
13
14mkdir -p "${nx%/*}"
15
16expect 0 mkdir ${nx} 0755
17expect 0 rmdir ${nx}
18expect ENAMETOOLONG mkdir ${nxx} 0755
19
20rm -rf "${nx%%/*}"
21