ClatUtilsTest - unique_fd only supports -1 not -errno

The unique_fd destructor calls close() on anything that isn't -1,
so it would for example call close(-EINVAL) since -EINVAL != -1.

While we're at it convert some EXPECT_* to ASSERT_* for clarity.

Test: atest netd_unit_test
Bug: 65674744
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I068d8986f27dd848a39c69dae7fd286a9b6d4b8a
1 file changed