-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fork static executable test into two.
The static-executable test couldn't have caught android/ndk#132 because it's already marked broken for a different issue (duplicate symbols caused by L's libc.a including new/delete and friends colliding with libsupc++ for exception support). To make our test suite marginally less useless, split this into two tests. static-executable will be the bare minimum static executable test, and static-executable-exceptions will make sure exception support works (or, for now, doesn't). Test: Applied with other patches in topic (one of which removes the broken annotation for static-executable), static-executable passes for ARM android-21 and static-executable-exceptions remains a known failure. Bug: http://b/24468267 Bug: android/ndk#132 Change-Id: Ib83c8f01974db5139ab4069996a6bf2187e51a94
- Loading branch information
Showing
7 changed files
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := static-executable | ||
LOCAL_SRC_FILES := main.cpp | ||
LOCAL_CFLAGS += -fexceptions | ||
LOCAL_LDFLAGS += -static | ||
include $(BUILD_EXECUTABLE) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
def match_broken(abi, platform, device_platform, toolchain, subtest=None): | ||
if platform >= 21: | ||
return 'android-{}'.format(platform), 'http://b/24468267' | ||
return None, None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int main() { | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
def match_broken(abi, platform, device_platform, toolchain, subtest=None): | ||
lp64_abis = ('arm64-v8a', 'mips64', 'x86_64') | ||
bug = 'https://github.com/android-ndk/ndk/issues/132' | ||
if platform >= 21: | ||
return 'android-{}'.format(platform), 'http://b/24468267' | ||
elif abi in lp64_abis: | ||
# If platform isn't provided we're going to use the default platform | ||
# level. For 32-bit ABIs the default is old enough that we'll pass, but | ||
# 64-bit ABIs will fail. | ||
return 'android-21', 'http://b/24468267' | ||
return 'android-{}'.format(platform), bug | ||
return None, None |