mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Two places in Driver are creating temporary files at a point in the process where failure is not expected. We should do something better about this, but meanwhile harmonize their failures and include a little more info. Filed https://bugs.swift.org/browse/SR-11541 to improve this.
17 lines
777 B
Swift
17 lines
777 B
Swift
// Check a handful of failures in the driver when TMPDIR can't be accessed.
|
|
//
|
|
// These particular error messages are kind of finicky to hit because they
|
|
// depend on what commands the driver needs to execute on each platform, so the
|
|
// test is somewhat artificially limited to macOS.
|
|
//
|
|
// REQUIRES: OS=macosx
|
|
|
|
// RUN: env TMP="%t/fake/" TMPDIR="%t/fake/" not %target-build-swift -c -driver-filelist-threshold=0 %s 2>&1 | %FileCheck -check-prefix=CHECK-SOURCES %s
|
|
|
|
// CHECK-SOURCES: - unable to create list of input sources
|
|
|
|
// RUN: echo > %t.o
|
|
// RUN: env TMP="%t/fake/" TMPDIR="%t/fake/" not %target-build-swift -driver-filelist-threshold=0 %t.o 2>&1 | %FileCheck -check-prefix=CHECK-FILELIST %s
|
|
|
|
// CHECK-FILELIST: - unable to create temporary file for inputs.LinkFileList
|