Skip to content

Commit

Permalink
negate
Browse files Browse the repository at this point in the history
  • Loading branch information
jpihl committed Aug 11, 2023
1 parent eac3897 commit bbd1444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/test_tun_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbd1444

Please sign in to comment.