blob: e69a701e634bb31f95865a6bbcbaff951242e265 [file] [log] [blame]
// RUN: %target-run-simple-swift %t
// REQUIRES: executable_test
// UNSUPPORTED: OS=windows-msvc
import StdlibUnittest
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#else
#error("Unsupported platform")
#endif
var MMapTests = TestSuite("MMaptests")
MMapTests.test("MAP_FAILED") {
expectEqual(mmap(nil, 0, 0, 0, 0, 0), MAP_FAILED)
}
runAllTests()