Skip to content

Commit 9230864

Browse files
committed
Updated Unit Test for CUUID
1 parent ff33f3b commit 9230864

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

validation-test/stdlib/CUUID.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
// RUN: %target-run-stdlib-swift
1+
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
33

44
// REQUIRES: OS=linux-gnu
55

6-
import Swift
76
import StdlibUnittest
8-
9-
107
import CUUID
118

9+
/// Make sure that the module map for the uuid.h header works
1210
var CUUIDTestSuite = TestSuite("CUUID")
1311

12+
/// Generates a random UUID
1413
CUUIDTestSuite.test("uuid") {
1514
var uuid: uuid_t = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
1615
withUnsafeMutablePointer(&uuid) {
1716
uuid_generate_random(unsafeBitCast($0, to: UnsafeMutablePointer<UInt8>.self))
1817
}
1918
}
2019

21-
runAllTests()
20+
runAllTests()

0 commit comments

Comments
 (0)