diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unistd_test.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/unistd_test.cpp b/tests/unistd_test.cpp index a21578a..79c16d7 100644 --- a/tests/unistd_test.cpp +++ b/tests/unistd_test.cpp @@ -179,10 +179,8 @@ TEST(unistd, ftruncate64) { TEST(unistd, ftruncate_negative) { TemporaryFile tf; errno = 0; - int rc = ftruncate(tf.fd, -123); - int err = errno; - ASSERT_EQ(-1, rc); - ASSERT_EQ(EINVAL, err); + ASSERT_EQ(-1, ftruncate(tf.fd, -123)); + ASSERT_EQ(EINVAL, errno); } static bool g_pause_test_flag = false; |