Skip to content

[test] Prepare tests to run on Android #2939

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

Merged
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
4 changes: 4 additions & 0 deletions test/1_stdlib/POSIX.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test

// Android Bionic does not provide a working implementation of
// <semaphore.h>.
// XFAIL: OS=linux-androideabi

import StdlibUnittest
#if os(Linux)
import Glibc
Expand Down
2 changes: 1 addition & 1 deletion test/1_stdlib/tgmath.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test

#if os(Linux) || os(FreeBSD)
#if os(Linux) || os(FreeBSD) || os(Android)
import Glibc
// FIXME: this is a quick hack for non Darwin platforms
// where they doesn't have CoreGraphics module.
Expand Down
1 change: 1 addition & 0 deletions test/ClangModules/autolinking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// UNSUPPORTED: OS=linux-gnu
// UNSUPPORTED: OS=linux-gnueabihf
// UNSUPPORTED: OS=freebsd
// UNSUPPORTED: OS=linux-androideabi

import LinkMusket
import LinkFramework
Expand Down
1 change: 1 addition & 0 deletions test/Serialization/autolinking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// UNSUPPORTED: OS=linux-gnu
// UNSUPPORTED: OS=linux-gnueabihf
// UNSUPPORTED: OS=freebsd
// UNSUPPORTED: OS=linux-androideabi

import someModule

Expand Down
2 changes: 1 addition & 1 deletion validation-test/SIL/verify_all_overlays.sil
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: for x in %platform-sdk-overlay-dir/*.swiftmodule; do [[ $(basename "$x") = Swift.swiftmodule ]] && continue; llvm-bcanalyzer $x | FileCheck %s; %target-sil-opt -enable-sil-verify-all $x > /dev/null; done
// RUN: for x in %platform-sdk-overlay-dir/*.swiftmodule; do [[ $(basename "$x") = Swift.swiftmodule ]] && continue; llvm-bcanalyzer $x | FileCheck %s; %target-sil-opt -sdk %sdk -enable-sil-verify-all $x > /dev/null; done
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For more discussion on this change, see: https://github.com/apple/swift/pull/1714/files#r59641994


// CHECK-NOT: Unknown

Expand Down