xref: /openbsd/regress/sys/ffs/tests/rename/01.t (revision 7b36286a)
1#!/bin/sh
2# $FreeBSD: src/tools/regression/fstest/tests/rename/01.t,v 1.1 2007/01/17 01:42:10 pjd Exp $
3
4desc="rename returns ENAMETOOLONG if a component of either pathname exceeded 255 characters"
5
6n0=`namegen`
7
8expect 0 create ${name255} 0644
9expect 0 rename ${name255} ${n0}
10expect 0 rename ${n0} ${name255}
11expect 0 unlink ${name255}
12
13expect 0 create ${n0} 0644
14expect ENAMETOOLONG rename ${n0} ${name256}
15expect 0 unlink ${n0}
16expect ENAMETOOLONG rename ${name256} ${n0}
17