Skip to content

Commit

Permalink
Make core:net test os.exit(1) on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelimion committed Sep 30, 2023
1 parent aa5716d commit 81fe931
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/core/net/test_core_net.odin
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import "core:net"
import "core:strconv"
import "core:time"
import "core:thread"
import "core:os"

_, _ :: time, thread

Expand Down Expand Up @@ -73,6 +74,10 @@ main :: proc() {
fmt.printf("%v/%v tests successful.\n", TEST_count - TEST_fail, TEST_count)

print_tracking_allocator_report()

if TEST_fail > 0 {
os.exit(1)
}
}

@test
Expand Down

0 comments on commit 81fe931

Please sign in to comment.