mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This test creates a shebang (#!) line that may exceed 80 characters, which is a limit on many systems. Instead, use /usr/bin/env to invoke the right 'swift'. OS X is more permissive (up to PATH_MAX characters), so continue testing the direct invocation there.
10 lines
365 B
Swift
10 lines
365 B
Swift
// RUN: echo '#'!%swift_driver_plain > %t.shebang.swift
|
|
// RUN: cat %S/shebang-env.swift >> %t.shebang.swift
|
|
// RUN: chmod u+x %t.shebang.swift
|
|
|
|
// RUN: %t.shebang.swift | FileCheck -check-prefix=NONE %S/shebang-env.swift
|
|
// RUN: %t.shebang.swift a b c | FileCheck -check-prefix=THREE-ARGS %S/shebang-env.swift
|
|
|
|
// REQUIRES: swift_interpreter
|
|
// UNSUPPORTED: linux
|