[test] Add SWIFT_USE_OLD_DRIVER=1 to some tests

The behavior of these tests varies depending on
whether the new or old driver is being used, force
the old driver for now.
This commit is contained in:
Hamish Knight
2024-09-22 23:10:40 +01:00
parent 0d9f667516
commit 8e0407b8c1
6 changed files with 15 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
// Check that a failed process-tree emits nonzero failure counters
// RUN: %empty-directory(%t)
// RUN: echo zzz >%t/other.swift
// RUN: not %target-swiftc_driver -continue-building-after-errors -D BROKEN -j 2 -typecheck -stats-output-dir %t %s %t/other.swift
// RUN: not env SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -continue-building-after-errors -D BROKEN -j 2 -typecheck -stats-output-dir %t %s %t/other.swift
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/stats.csv %t
// RUN: %FileCheck -input-file %t/stats.csv -check-prefix=FAILURE %s
// FAILURE: {{"Driver.NumProcessFailures" 1$}}