OSDN Git Service

Remove a test for dead code.
authorElliott Hughes <enh@google.com>
Wed, 14 May 2014 01:17:25 +0000 (18:17 -0700)
committerElliott Hughes <enh@google.com>
Wed, 14 May 2014 01:18:47 +0000 (18:18 -0700)
Bug: 14903517
Change-Id: I139ae922c6c9468606d3145f0c74361ed789d949

tests/bionic/libc/Android.mk
tests/bionic/libc/other/test_atomics.c [deleted file]

index 32900a8..a29b792 100644 (file)
@@ -142,11 +142,6 @@ sources := \
     other/test_sysconf.c \
     other/test_vfprintf_leak.c \
 
-ifeq ($(TARGET_ARCH),arm)
-sources += \
-    other/test_atomics.c
-endif
-
 $(call device-test, $(sources))
 
 # The relocations test is a bit special, since we need
diff --git a/tests/bionic/libc/other/test_atomics.c b/tests/bionic/libc/other/test_atomics.c
deleted file mode 100644 (file)
index 0de2a93..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdio.h>
-
-
-extern int __atomic_dec(volatile int* addr);
-
-int main(int argc, const char *argv[])
-{
-    int x = 5;
-
-    while (x > -20) {
-        printf("old_x=%d\n", __atomic_dec(&x));
-        printf("x=%d\n", x);
-    }
-
-    printf ("OK\n");
-    return 0;
-}