diff --git a/liblog/tests/Android.mk b/liblog/tests/Android.mk
index 39b52ac35ed90f8121638735273f8649ab5c2b44..1e41d90db7858ade0e0727da19619a72b7a04514 100644
--- a/liblog/tests/Android.mk
+++ b/liblog/tests/Android.mk
@@ -55,7 +55,6 @@ test_c_flags := \
     -fno-builtin \
 
 cts_src_files := \
-    libc_test.cpp \
     liblog_test_default.cpp \
     liblog_test_local.cpp \
     liblog_test_stderr.cpp \
@@ -68,6 +67,7 @@ cts_src_files := \
     log_wrap_test.cpp
 
 test_src_files := \
+    libc_test.cpp \
     $(cts_src_files) \
 
 # Build tests for the device (with .so). Run with: