Files
swift-mirror/test/Migrator/insert_replace_fixit.swift
3405691582 88167e74d1 [test] diff --strip-trailing-cr is non-standard.
This flag is a GNU extension, and would cause misleading test failures
on other platforms where this extension is not available. However, the
necessity to switch line endings is only required on Windows when
testing. We could use sed to canonicalize line endings before comparing,
but that may cause higher amounts of filesystem traffic on Windows which
would slow down testing.

Instead, move the substitution for diff in SourceKit's lit.local.cfg up
to the top level, and conditionalize the substitution which has the flag
on Windows, but not on other platforms (where it should not be required).
2020-09-13 13:50:15 -04:00

15 lines
403 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -update-code -primary-file %s -F %S/mock-sdk -emit-migrated-file-path %t/result.swift -swift-version 4
// RUN: %diff -u %s.expected %t/result.swift
import TestMyTime
let zero = kMyTimeZero
let _ = MyTimeAdd(kMyTimeZero, kMyTimeZero)
let _ = MyTimeAdd(
kMyTimeZero, kMyTimeZero)
let _ = MyTimeAdd(
kMyTimeZero,
kMyTimeZero)