Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ config.test_format = lit.formats.ShTest(execute_external = False)
# suffixes: A list of file extensions to treat as test files.
#
# We override this in specific subdirectories to change what we test.
config.suffixes = [".txt", ".py", ".md"]
config.suffixes = [".txt", ".py", ".md", ".test"]

# excludes: A list of directories to exclude from the testsuite. The 'Inputs'
# subdirectories contain auxiliary inputs for various tests in their parent
Expand Down
6 changes: 6 additions & 0 deletions test-static-stdlib/main.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

import Foundation

let u = URL(fileURLWithPath: "file:///foo")

print("foo bar baz: \(u)")
7 changes: 7 additions & 0 deletions test-static-stdlib/test-static-stdlib.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

RUN: rm -rf %t
RUN: mkdir -p %t
RUN: %{swiftc} -static-stdlib %S/main.swift -o %t/main
RUN: %t/main | %{FileCheck} %s

CHECK: foo bar baz: file:/foo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the file path .. I don't remember off the top of my head the canonicalization behaviour of Foundation on Windows.