Files
swift-mirror/validation-test/stdlib/CUUID.swift
Alsey Coleman Miller ff33f3bb74 Added CUUID to Glibc
Necessary for SR-1756 and SE-0069
2016-06-21 13:48:15 -05:00

21 lines
420 B
Swift

// RUN: %target-run-stdlib-swift
// REQUIRES: executable_test
// REQUIRES: OS=linux-gnu
import Swift
import StdlibUnittest
import CUUID
var CUUIDTestSuite = TestSuite("CUUID")
CUUIDTestSuite.test("uuid") {
var uuid: uuid_t = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
withUnsafeMutablePointer(&uuid) {
uuid_generate_random(unsafeBitCast($0, to: UnsafeMutablePointer<UInt8>.self))
}
}
runAllTests()