From bbd14444c21cae7d498ba7b2172d0442d285ab09 Mon Sep 17 00:00:00 2001 From: Jeppe Pihl Date: Fri, 11 Aug 2023 15:41:19 +0200 Subject: [PATCH] negate --- test/src/test_tun_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/test_tun_interface.cpp b/test/src/test_tun_interface.cpp index 07b9d7a..6fe644b 100644 --- a/test/src/test_tun_interface.cpp +++ b/test/src/test_tun_interface.cpp @@ -16,7 +16,7 @@ TEST(test_tun_interface, construct_no_su_fail) TEST(test_tun_interface, create_no_su_expect_fail) { // Check if we are root - if (getuid() == 0) + if (getuid() != 0) { tunnel::tun_interface t; EXPECT_THROW(t.create("dummy", false), std::system_error);