$ git log -1
[2016-09-27T00:41:34Z · 0 s] commit 894be3703f92b39f7907934d280b3c67b95dbf25
[2016-09-27T00:41:34Z · 0 s] Author: Andrew Trick
[2016-09-27T00:41:34Z · 0 s] Date: Mon Sep 26 17:31:09 2016 -0700
[2016-09-27T00:41:34Z · 0 s]
[2016-09-27T00:41:34Z · 0 s] Fix UnsafeBufferPointer validation test. (#5021)
[2016-09-27T00:41:34Z · 0 s]
[2016-09-27T00:41:34Z · 0 s] There are several checks related to accessing a slice of an
[2016-09-27T00:41:34Z · 0 s] UnsafeBufferPointer. Which tests are active depend on the level of
[2016-09-27T00:41:34Z · 0 s] optimization. A raw buffer's checks are also stricter in some cases.
[2016-09-27T00:41:34Z · 0 s]
[2016-09-27T00:41:34Z · 0 s] This test was originally designed to either crash or not for each input range
[2016-09-27T00:41:34Z · 0 s] without regard to the nuances of when bounds checks are enabled. When an input
[2016-09-27T00:41:34Z · 0 s] range was marked as crashing, that forced the test case to crash which was
[2016-09-27T00:41:34Z · 0 s] self-fullfilling--nothing was really being tested in that case.
[2016-09-27T00:41:34Z · 0 s]
[2016-09-27T00:41:34Z · 0 s] In my previous checkin, I enabled crash checking to be effective but missed some
[2016-09-27T00:41:34Z · 0 s] of the nuances of different bounds checking modes. This commit adds logic to the test
[2016-09-27T00:41:34Z · 0 s] to account for these nuances.
$ utils/build-script -RT
[2016-09-27T00:41:35Z · 1 s] + mkdir -p …/build/Ninja-ReleaseAssert
[2016-09-27T00:41:35Z · 1 s] + env HOST_VARIABLE_linux_x86_64__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_RUN_BENC...
[2016-09-27T00:41:35Z · 1 s] Building the standard library for: swift-stdlib-linux-x86_64
[2016-09-27T00:41:35Z · 1 s] Running Swift tests for: check-swift-validation-linux-x86_64
[2016-09-27T00:41:35Z · 1 s] cmark: using gold linker
[2016-09-27T00:41:35Z · 1 s] + rm -rf …/cmark-linux-x86_64/module-cache
[2016-09-27T00:41:35Z · 1 s] + mkdir -p …/cmark-linux-x86_64/module-cache
[2016-09-27T00:41:35Z · 1 s] + /usr/bin/cmake --build …/cmark-linux-x86_64 -- -j12 all
[2016-09-27T00:41:35Z · 1 s] llvm: using gold linker
[2016-09-27T00:41:35Z · 1 s] + rm -rf …/llvm-linux-x86_64/module-cache
[2016-09-27T00:41:35Z · 1 s] + mkdir -p …/llvm-linux-x86_64/module-cache
[2016-09-27T00:41:35Z · 1 s] symlinking the system headers (/usr/include/c++) into the local clang build directory (…/llvm-linux-x...
[2016-09-27T00:41:35Z · 1 s] + ln -s -f /usr/include/c++ …/llvm-linux-x86_64/include
[2016-09-27T00:41:35Z · 1 s] + /usr/bin/cmake --build …/llvm-linux-x86_64 -- -j12 all
[2016-09-27T00:41:35Z · 1 s] swift: using gold linker
[2016-09-27T00:41:36Z · 2 s] + rm -rf …/module-cache
[2016-09-27T00:41:36Z · 2 s] + mkdir -p …/module-cache
[2016-09-27T00:41:36Z · 2 s] + /usr/bin/cmake --build … -- -j12 all swift-stdlib-linux-x86_64
[2016-09-27T00:41:36Z · 2 s] [1/42] Generating SwiftRevision.inc
[2016-09-27T00:41:36Z · 2 s] [2/42] Symlinking Clang resource headers into …/lib/swift/clang
[2016-09-27T00:41:36Z · 2 s] [3/42] Building CXX object lib/Basic/CMakeFiles/swiftBasic.dir/Version.cpp.o
[2016-09-27T00:41:38Z · 4 s] [4/42] Linking CXX static library lib/libswiftBasic.a
[2016-09-27T00:41:38Z · 4 s] [5/42] Linking CXX executable bin/swift
[2016-09-27T00:41:38Z · 4 s] [6/42] Linking CXX executable bin/sil-opt
[2016-09-27T00:41:38Z · 4 s] [7/42] Linking CXX executable bin/swift-remoteast-test
[2016-09-27T00:41:38Z · 4 s] [8/42] Linking CXX executable bin/swift-ide-test
[2016-09-27T00:41:38Z · 4 s] [9/42] Linking CXX executable bin/swift-demangle
[2016-09-27T00:41:38Z · 4 s] [10/42] Linking CXX executable bin/lldb-moduleimport-test
[2016-09-27T00:41:38Z · 4 s] [11/42] Linking CXX executable bin/sil-extract
[2016-09-27T00:41:38Z · 4 s] [12/42] Linking CXX executable bin/swift-llvm-opt
[2016-09-27T00:41:45Z · 11 s] [13/42] Compiling …/stdlib/public/core/…/Swift.o
[2016-09-27T00:43:58Z · 144 s] [14/42] Linking CXX shared library lib/swift/…/libswiftCore.so
[2016-09-27T00:43:58Z · 144 s] [15/42] Generating …/lib/swift/linux/libswiftCore.so
[2016-09-27T00:43:58Z · 144 s] [16/42] Compiling …/stdlib/public/SwiftOnoneSupport/…/SwiftOnoneSupport.o
[2016-09-27T00:43:58Z · 144 s] [17/42] Compiling …/stdlib/public/Platform/…/Glibc.o
[2016-09-27T00:43:58Z · 144 s] [18/42] Compiling …/stdlib/internal/SwiftExperimental/…/SwiftExperimental.o
[2016-09-27T00:43:58Z · 144 s] [19/42] Compiling …/stdlib/private/SwiftPrivate/…/SwiftPrivate.o
[2016-09-27T00:43:59Z · 145 s] [20/42] Linking CXX shared library lib/swift/…/libswiftSwiftExperimental.so
[2016-09-27T00:43:59Z · 145 s] [21/42] Generating …/lib/swift/linux/libswiftSwiftExperimental.so
[2016-09-27T00:43:59Z · 145 s] [22/42] Linking CXX shared library lib/swift/…/libswiftGlibc.so
[2016-09-27T00:43:59Z · 145 s] [23/42] Generating …/lib/swift/linux/libswiftGlibc.so
[2016-09-27T00:43:59Z · 145 s] [24/42] Compiling …/stdlib/private/SwiftPrivatePthreadExtras/…/SwiftPrivatePthreadExtras.o
[2016-09-27T00:44:00Z · 146 s] [25/42] Linking CXX shared library lib/swift/…/libswiftSwiftPrivatePthreadExtras.so
[2016-09-27T00:44:00Z · 146 s] [26/42] Generating …/lib/swift/linux/libswiftSwiftPrivatePthreadExtras.so
[2016-09-27T00:44:04Z · 150 s] [27/42] Linking CXX shared library lib/swift/…/libswiftSwiftPrivate.so
[2016-09-27T00:44:04Z · 150 s] [28/42] Generating …/lib/swift/linux/libswiftSwiftPrivate.so
[2016-09-27T00:44:04Z · 150 s] [29/42] Compiling …/stdlib/private/SwiftPrivateLibcExtras/…/SwiftPrivateLibcExtras.o
[2016-09-27T00:44:08Z · 154 s] [30/42] Linking CXX shared library lib/swift/…/libswiftSwiftPrivateLibcExtras.so
[2016-09-27T00:44:08Z · 154 s] [31/42] Compiling …/stdlib/private/StdlibUnittest/…/StdlibUnittest.o
[2016-09-27T00:44:08Z · 154 s] [32/42] Generating …/lib/swift/linux/libswiftSwiftPrivateLibcExtras.so
[2016-09-27T00:44:30Z · 176 s] [33/42] Linking CXX shared library lib/swift/…/libswiftSwiftOnoneSupport.so
[2016-09-27T00:44:30Z · 176 s] [34/42] Generating …/lib/swift/linux/libswiftSwiftOnoneSupport.so
[2016-09-27T00:44:48Z · 194 s] …/swift/stdlib/private/StdlibUnittest/RaceTest.swift:592:9: warning: immutable value 't' was never us...
[2016-09-27T00:44:48Z · 194 s] for t in 0..<trials {
[2016-09-27T00:44:48Z · 194 s] ^
[2016-09-27T00:44:48Z · 194 s] _
[2016-09-27T00:44:48Z · 194 s] …/swift/stdlib/private/StdlibUnittest/StdlibUnittest.swift.gyb:577:5: warning: default will never be ...
[2016-09-27T00:44:48Z · 194 s] default:
[2016-09-27T00:44:48Z · 194 s] ^
[2016-09-27T00:44:48Z · 194 s] [35/42] Linking CXX shared library lib/swift/…/libswiftStdlibUnittest.so
[2016-09-27T00:44:48Z · 194 s] [36/42] Generating …/lib/swift/linux/libswiftStdlibUnittest.so
[2016-09-27T00:44:48Z · 194 s] [37/42] Compiling …/stdlib/private/StdlibUnicodeUnittest/…/StdlibUnicodeUnittest.o
[2016-09-27T00:44:48Z · 194 s] [38/42] Compiling …/stdlib/private/StdlibCollectionUnittest/…/StdlibCollectionUnittest.o
[2016-09-27T00:44:58Z · 204 s] [39/42] Linking CXX shared library lib/swift/…/libswiftStdlibUnicodeUnittest.so
[2016-09-27T00:44:58Z · 204 s] [40/42] Generating …/lib/swift/linux/libswiftStdlibUnicodeUnittest.so
[2016-09-27T00:46:32Z · 298 s] …/swift/stdlib/private/StdlibCollectionUnittest/CheckCollectionType.swift.gyb:537:3: warning: closure...
[2016-09-27T00:46:32Z · 298 s] extractValueFromEquatable: @escaping (
[2016-09-27T00:46:32Z · 298 s] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2016-09-27T00:46:32Z · 298 s] …/swift/stdlib/private/StdlibCollectionUnittest/CheckCollectionType.swift.gyb:1200:3: warning: closur...
[2016-09-27T00:46:32Z · 298 s] extractValueFromEquatable: @escaping (
[2016-09-27T00:46:32Z · 298 s] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2016-09-27T00:46:32Z · 298 s] …/swift/stdlib/private/StdlibCollectionUnittest/CheckCollectionType.swift.gyb:1518:3: warning: closur...
[2016-09-27T00:46:32Z · 298 s] extractValueFromEquatable: @escaping (
[2016-09-27T00:46:32Z · 298 s] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2016-09-27T00:46:32Z · 298 s] [41/42] Linking CXX shared library lib/swift/…/libswiftStdlibCollectionUnittest.so
[2016-09-27T00:46:32Z · 298 s] [42/42] Generating …/lib/swift/linux/libswiftStdlibCollectionUnittest.so
[2016-09-27T00:46:32Z · 298 s] + /usr/bin/cmake --build …/cmark-linux-x86_64 -- -j12 api_test
[2016-09-27T00:46:32Z · 298 s] + cd …/cmark-linux-x86_64
[2016-09-27T00:46:32Z · 298 s] + /root/cmake-3.6.0-rc3-Linux-x86_64/bin/ctest --force-new-ctest-process
[2016-09-27T00:46:32Z · 298 s] Test project …/cmark-linux-x86_64
[2016-09-27T00:46:36Z · 302 s] 100% tests passed, 0 tests failed out of 6
[2016-09-27T00:46:36Z · 302 s] Total Test time (real) = 4.45 sec
[2016-09-27T00:46:36Z · 302 s] + /usr/bin/cmake --build … -- -j12 SwiftUnitTests
[2016-09-27T00:46:36Z · 302 s] [1/8] Symlinking Clang resource headers into …/lib/swift/clang
[2016-09-27T00:46:36Z · 302 s] [2/8] Linking CXX executable unittests/Driver/SwiftDriverTests
[2016-09-27T00:46:36Z · 302 s] [3/8] Linking CXX executable unittests/AST/SwiftASTTests
[2016-09-27T00:46:36Z · 302 s] [4/8] Linking CXX executable unittests/Basic/SwiftBasicTests
[2016-09-27T00:46:36Z · 302 s] [5/8] Linking CXX executable unittests/IDE/SwiftIDETests
[2016-09-27T00:46:36Z · 302 s] [6/8] Linking CXX executable unittests/Parse/SwiftParseTests
[2016-09-27T00:46:36Z · 302 s] [7/8] Linking CXX executable unittests/runtime/SwiftRuntimeTests
[2016-09-27T00:46:36Z · 302 s] [8/8] Linking CXX executable unittests/runtime/LongTests/SwiftRuntimeLongTests
[2016-09-27T00:46:41Z · 307 s] + cd …/stdlib/public/SwiftShims
[2016-09-27T00:46:41Z · 307 s] + cd …/test
[2016-09-27T00:46:41Z · 307 s] + /usr/bin/python lit.py --incremental -sv --xunit-xml-output=…/swift-test-results/x86_64-unknown-lin...
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift: …/bin/swift
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swiftc: …/bin/swiftc
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using sil-opt: …/bin/sil-opt
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using sil-extract: …/bin/sil-extract
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using lldb-moduleimport-test: …/bin/lldb-moduleimport-test
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-ide-test: …/bin/swift-ide-test
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-reflection-dump: …/bin/swift-reflection-dump
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-remoteast-test: …/bin/swift-remoteast-test
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-format: …/bin/swift-format
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using clang: …/llvm-linux-x86_64/bin/clang
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-link: …/llvm-linux-x86_64/bin/llvm-link
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-llvm-opt: …/bin/swift-llvm-opt
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-profdata: …/llvm-linux-x86_64/bin/llvm-profdata
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-cov: …/llvm-linux-x86_64/bin/llvm-cov
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using FileCheck: …/llvm-linux-x86_64/bin/FileCheck
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-dwarfdump: …/llvm-linux-x86_64/bin/llvm-dwarfdump
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:306: note: Using resource dir: …/lib/swift
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:332: note: Using Clang module cache: /tmp/swift-testsuite-clang-module-c...
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:333: note: Using test results dir: …/swift-test-results/x86_64-unknown-l...
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:337: note: Using code completion cache: /tmp/swift-testsuite-completion-...
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:721: note: Testing Linux x86_64-unknown-linux-gnu
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-autolink-extract: …/bin/swift-autolink-extract
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:991: note: Using platform module dir: …/lib/swift/%target-sdk-name/x86_64
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift: …/bin/swift
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swiftc: …/bin/swiftc
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using sil-opt: …/bin/sil-opt
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using sil-extract: …/bin/sil-extract
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using lldb-moduleimport-test: …/bin/lldb-moduleimport-test
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-ide-test: …/bin/swift-ide-test
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-reflection-dump: …/bin/swift-reflection-dump
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-remoteast-test: …/bin/swift-remoteast-test
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-format: …/bin/swift-format
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using clang: …/llvm-linux-x86_64/bin/clang
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-link: …/llvm-linux-x86_64/bin/llvm-link
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-llvm-opt: …/bin/swift-llvm-opt
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-profdata: …/llvm-linux-x86_64/bin/llvm-profdata
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-cov: …/llvm-linux-x86_64/bin/llvm-cov
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using FileCheck: …/llvm-linux-x86_64/bin/FileCheck
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using llvm-dwarfdump: …/llvm-linux-x86_64/bin/llvm-dwarfdump
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:306: note: Using resource dir: …/lib/swift
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:332: note: Using Clang module cache: /tmp/swift-testsuite-clang-module-c...
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:333: note: Using test results dir: …/swift-test-results/x86_64-unknown-l...
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:337: note: Using code completion cache: /tmp/swift-testsuite-completion-...
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:721: note: Testing Linux x86_64-unknown-linux-gnu
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:255: note: using swift-autolink-extract: …/bin/swift-autolink-extract
[2016-09-27T00:46:41Z · 307 s] lit.py: …/swift/test/lit.cfg:991: note: Using platform module dir: …/lib/swift/%target-sdk-name/x86_64
[2016-09-27T01:04:35Z · 1381 s] Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
[2016-09-27T01:04:35Z · 1381 s] Testing Time: 1073.49s
[2016-09-27T01:04:35Z · 1381 s] Expected Passes : 7709
[2016-09-27T01:04:35Z · 1381 s] Expected Failures : 71
[2016-09-27T01:04:35Z · 1381 s] Unsupported Tests : 871