upstart: Fix utmp test setup

This test was trying to write duplicate entries to the utmp database
in test setup, which fails in complicated ways due to glibc's internal
caching. Instead just directly write the data we want to be in the
file to the file.

BUG=b:232122437
TEST=FEATURES=test emerge-eve upstart

Change-Id: I186eb1d33ee84318e8ab8cd6f57aed53a8570ed6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/upstart/+/3644751
Tested-by: Fergus Dall <sidereal@google.com>
Commit-Queue: Fergus Dall <sidereal@google.com>
Reviewed-by: Allen Webb <allenwebb@google.com>
1 file changed