diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-09-15 14:44:54 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-09-15 14:44:54 -0700 |
commit | 10fa5b67388baa5310effb9b0440525625d28151 (patch) | |
tree | eb72f9654405e6ee4276f37c71931777d8b2e5a5 /tests | |
parent | c17d8f4e80c94bcaee16793ca85232e1201da447 (diff) | |
download | ndk-10fa5b67388baa5310effb9b0440525625d28151.tar.gz |
Add testcase for ucontext.h
Change-Id: Ia6a4308e32c679b5b9644c182a63d989627196e2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/build/ucontext/jni/Android.mk | 6 | ||||
-rw-r--r-- | tests/build/ucontext/jni/Application.mk | 1 | ||||
-rw-r--r-- | tests/build/ucontext/jni/ucontext.c | 21 |
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/build/ucontext/jni/Android.mk b/tests/build/ucontext/jni/Android.mk new file mode 100644 index 000000000..1fe3f992e --- /dev/null +++ b/tests/build/ucontext/jni/Android.mk @@ -0,0 +1,6 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := ucontext +LOCAL_SRC_FILES := ucontext.c +include $(BUILD_EXECUTABLE) diff --git a/tests/build/ucontext/jni/Application.mk b/tests/build/ucontext/jni/Application.mk new file mode 100644 index 000000000..a252a72d7 --- /dev/null +++ b/tests/build/ucontext/jni/Application.mk @@ -0,0 +1 @@ +APP_ABI := all diff --git a/tests/build/ucontext/jni/ucontext.c b/tests/build/ucontext/jni/ucontext.c new file mode 100644 index 000000000..2e186f3b2 --- /dev/null +++ b/tests/build/ucontext/jni/ucontext.c @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include <signal.h> + +int main() +{ + struct ucontext u; +} |