1*40a8ac8fSEnji Cooper#!/bin/sh 2*40a8ac8fSEnji Cooper# $FreeBSD: head/tools/regression/pjdfstest/tests/mknod/02.t 211352 2010-08-15 21:24:17Z pjd $ 3*40a8ac8fSEnji Cooper 4*40a8ac8fSEnji Cooperdesc="mknod returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters" 5*40a8ac8fSEnji Cooper 6*40a8ac8fSEnji Cooperdir=`dirname $0` 7*40a8ac8fSEnji Cooper. ${dir}/../misc.sh 8*40a8ac8fSEnji Cooper 9*40a8ac8fSEnji Cooperecho "1..12" 10*40a8ac8fSEnji Cooper 11*40a8ac8fSEnji Coopernx=`namegen_max` 12*40a8ac8fSEnji Coopernxx="${nx}x" 13*40a8ac8fSEnji Cooper 14*40a8ac8fSEnji Cooperexpect 0 mknod ${nx} f 0644 0 0 15*40a8ac8fSEnji Cooperexpect fifo,0644 stat ${nx} type,mode 16*40a8ac8fSEnji Cooperexpect 0 unlink ${nx} 17*40a8ac8fSEnji Cooperexpect ENAMETOOLONG mknod ${nxx} f 0644 0 0 18*40a8ac8fSEnji Cooper 19*40a8ac8fSEnji Cooperexpect 0 mknod ${nx} b 0644 1 2 20*40a8ac8fSEnji Cooperexpect block,0644 stat ${nx} type,mode 21*40a8ac8fSEnji Cooperexpect 0 unlink ${nx} 22*40a8ac8fSEnji Cooperexpect ENAMETOOLONG mknod ${nxx} b 0644 0 0 23*40a8ac8fSEnji Cooper 24*40a8ac8fSEnji Cooperexpect 0 mknod ${nx} c 0644 1 2 25*40a8ac8fSEnji Cooperexpect char,0644 stat ${nx} type,mode 26*40a8ac8fSEnji Cooperexpect 0 unlink ${nx} 27*40a8ac8fSEnji Cooperexpect ENAMETOOLONG mknod ${nxx} c 0644 0 0 28