NAME

00-lib-check.t - the lib-locating BEGIN block in every test

DESCRIPTION

This file tests the BEGIN block above, which finds the lib next to the t directory of $0, dies if that is not a directory, and dies if lib is a symlink that does not resolve to the lib next to the physical t directory, so code outside the checkout is not loaded. It adds lib to @INC unless lib or a blib is already there.

The layout tests run this file's copy of the block in a probe script against real, symlinked, outside, dangling, and missing lib directories. The other tests in this tree do not hold the block.