Fix issues running Perforce unit tests.
Review Request #10350 — Created Dec. 5, 2018 and submitted — Latest diff uploaded
The Perforce test suite had two issues have have cropped up. First, if
the local computer's hostname was in the form ofMyComputer.tld
instead ofMyComputer, a comparison would fail. We were comparing the
entire string when we should have just compared the first part.Second, the
anonymoususer we were using for
public.perforce.com:1666could no longer be used. Instead, they have a
guestuser, which functions likeanonymousonce did. We now use this
for our tests instead.
Unit tests pass.