Skip to content

Use Linux Glibc and Foundation on Android #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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 Sources/XCTest/PrintObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Prints test progress to stdout.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCNotificationExpectationHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// observed.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Base class for test cases
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCTestMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// for running tests and some infrastructure for running them.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Glibc
import Foundation
#else
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCTestObservation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Hooks for being notified about progress during a test run.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCTestObservationCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Notification center for test run progress events.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCTestRun.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// A test run collects information about the execution of a test.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCTestSuiteRun.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// A test run for an `XCTestSuite`.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTest/XCWaitCompletionHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// fulfilled times out.
//

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Foundation
#else
import SwiftFoundation
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Asynchronous/Expectations/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/Asynchronous > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
import Foundation
#else
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Asynchronous/Handler/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/Handler > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
import Foundation
#else
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Asynchronous/Misuse/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/Misuse > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/Asynchronous-Notifications > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
import Foundation
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/Asynchronous-Notifications-Handler > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
import Foundation
#else
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/ErrorHandling/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/ErrorHandling > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/FailingTestSuite/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/FailingTestSuite > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/FailureMessagesTestCase/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/FailureMessagesTestCase > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/NegativeAccuracyTestCase/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/NegativeAccuracyTestCase > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Observation/All/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/All > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
import Foundation
#else
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Observation/Selected/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/Selected Selected.ExecutedTestCase/test_executed > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
import Foundation
#else
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/SelectedTest/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// RUN: %{xctest_checker} -p "// CHECK-TESTCASE:" %T/one_test_case %s
// RUN: %{xctest_checker} -p "// CHECK-ALL:" %T/all %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/SingleFailingTestCase/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/SingleFailingTestCase > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/TestCaseLifecycle/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{built_tests_dir}/TestCaseLifecycle > %t || true
// RUN: %{xctest_checker} %t %s

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import XCTest
#else
import SwiftXCTest
Expand Down