140a8ac8fSEnji Cooper#!/bin/sh 2*3416500aSEnji Cooper# vim: filetype=sh noexpandtab ts=8 sw=8 340a8ac8fSEnji Cooper# $FreeBSD: head/tools/regression/pjdfstest/tests/mknod/02.t 211352 2010-08-15 21:24:17Z pjd $ 440a8ac8fSEnji Cooper 540a8ac8fSEnji Cooperdesc="mknod returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters" 640a8ac8fSEnji Cooper 740a8ac8fSEnji Cooperdir=`dirname $0` 840a8ac8fSEnji Cooper. ${dir}/../misc.sh 940a8ac8fSEnji Cooper 1040a8ac8fSEnji Cooperecho "1..12" 1140a8ac8fSEnji Cooper 1240a8ac8fSEnji Coopernx=`namegen_max` 1340a8ac8fSEnji Coopernxx="${nx}x" 1440a8ac8fSEnji Cooper 1540a8ac8fSEnji Cooperexpect 0 mknod ${nx} f 0644 0 0 1640a8ac8fSEnji Cooperexpect fifo,0644 stat ${nx} type,mode 1740a8ac8fSEnji Cooperexpect 0 unlink ${nx} 1840a8ac8fSEnji Cooperexpect ENAMETOOLONG mknod ${nxx} f 0644 0 0 1940a8ac8fSEnji Cooper 2040a8ac8fSEnji Cooperexpect 0 mknod ${nx} b 0644 1 2 2140a8ac8fSEnji Cooperexpect block,0644 stat ${nx} type,mode 2240a8ac8fSEnji Cooperexpect 0 unlink ${nx} 2340a8ac8fSEnji Cooperexpect ENAMETOOLONG mknod ${nxx} b 0644 0 0 2440a8ac8fSEnji Cooper 2540a8ac8fSEnji Cooperexpect 0 mknod ${nx} c 0644 1 2 2640a8ac8fSEnji Cooperexpect char,0644 stat ${nx} type,mode 2740a8ac8fSEnji Cooperexpect 0 unlink ${nx} 2840a8ac8fSEnji Cooperexpect ENAMETOOLONG mknod ${nxx} c 0644 0 0 29