Skip to content

Commit c3429f1

Browse files
committed
Adjusted one-way-external to not fail on 32-bit
The date chosen to touch the file with causes the 32-bit time_t to roll-over. The new date is sufficiently in the future, but within the valid range.
1 parent 1e88689 commit c3429f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Driver/Dependencies/one-way-external.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// RUN: touch -t 201401240005 %t/*
2222
// RUN: touch -t 201401240006 %t/*.o
2323
// RUN: touch -t 201401240004 %t/*-external
24-
// RUN: touch -t 300004010005 %t/other1-external
24+
// RUN: touch -t 203704010005 %t/other1-external
2525
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -module-name main -j1 -v 2>&1 | FileCheck -check-prefix=CHECK-THIRD %s
2626

2727
// CHECK-THIRD-DAG: Handled other.swift
@@ -30,14 +30,14 @@
3030
// RUN: touch -t 201401240005 %t/*
3131
// RUN: touch -t 201401240006 %t/*.o
3232
// RUN: touch -t 201401240004 %t/*-external
33-
// RUN: touch -t 300004010005 %t/other2-external
33+
// RUN: touch -t 203704010005 %t/other2-external
3434
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -module-name main -j1 -v 2>&1 | FileCheck -check-prefix=CHECK-THIRD %s
3535

3636

3737
// RUN: touch -t 201401240005 %t/*
3838
// RUN: touch -t 201401240006 %t/*.o
3939
// RUN: touch -t 201401240004 %t/*-external
40-
// RUN: touch -t 300004010005 %t/main1-external
40+
// RUN: touch -t 203704010005 %t/main1-external
4141
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -module-name main -j1 -v 2>&1 | FileCheck -check-prefix=CHECK-FOURTH %s
4242

4343
// CHECK-FOURTH-NOT: Handled other.swift
@@ -47,5 +47,5 @@
4747
// RUN: touch -t 201401240005 %t/*
4848
// RUN: touch -t 201401240006 %t/*.o
4949
// RUN: touch -t 201401240004 %t/*-external
50-
// RUN: touch -t 300004010005 %t/main2-external
50+
// RUN: touch -t 203704010005 %t/main2-external
5151
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift -module-name main -j1 -v 2>&1 | FileCheck -check-prefix=CHECK-FOURTH %s

0 commit comments

Comments
 (0)