selftest: correct the import of Time::HighRes
authorMatthieu Patou <mat@matws.net>
Mon, 18 Oct 2010 16:21:12 +0000 (20:21 +0400)
committerMatthieu Patou <mat@samba.org>
Mon, 18 Oct 2010 19:09:07 +0000 (19:09 +0000)
commitb1a13e5e1453b6f776e0a35f293f4060c77fe59a
tree270b49d877f0d06565aea401a975c418b71be3fe
parent8556602b048e825b35df314d6865f997823ec2bb
selftest: correct the import of Time::HighRes

The "use" is always evaluated first even if enclosed into a if. So
on plateform without Time::Hires (ie. sun8 in the build farm). This
leads to an error.

Instead we use the synthax require Module + Module->import("function")
selftest/selftest.pl