Skip to content

Commit

Permalink
Add a negative test case for missing dependencies.
Browse files Browse the repository at this point in the history
Test: ./run_tests.py --filter fails-missing-deps
Bug: android/ndk#208
Change-Id: I5f8ace6bc468e07440c86d3113dec31fcaaf53a6
  • Loading branch information
DanAlbert committed Sep 29, 2016
1 parent 30a6e2d commit a2a4402
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/build/fails-missing-deps/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := foo
LOCAL_SRC_FILES := foo.cpp
LOCAL_STATIC_LIBRARIES := missing-dep
include $(BUILD_EXECUTABLE)
3 changes: 3 additions & 0 deletions tests/build/fails-missing-deps/jni/foo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
int main(int, char**) {
return 0;
}
2 changes: 2 additions & 0 deletions tests/build/fails-missing-deps/test_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def is_negative_test():
return True

0 comments on commit a2a4402

Please sign in to comment.