Skip to content

Commit

Permalink
test: cmake tests return integers
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Oct 4, 2024
1 parent f4ae8f2 commit b6688d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/cmake_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
#include <boost/url.hpp>

int main() {
boost::urls::ipv4_address ip_addr({127, 0, 0, 1});
if (ip_addr.to_bytes().size() != 4) {
throw;
}
boost::urls::ipv4_address ip_addr({127, 0, 0, 1});
if (ip_addr.to_bytes().size() != 4) {
return 1;
}
return 0;
}

0 comments on commit b6688d9

Please sign in to comment.