diff options
author | Elliott Hughes <enh@google.com> | 2014-06-21 07:24:56 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-06-20 00:18:37 +0000 |
commit | 0795553f0c913f3a9086aff42b9ee483c09cf18e (patch) | |
tree | 469adf622b74908eae440ead48e543f27340c33e | |
parent | 53ea786b38f0e394b0b57e5deb0f8f262cea7819 (diff) | |
parent | d8b301f6ef2ebab0b8614208ecca51fe79aafac4 (diff) | |
download | extras-0795553f0c913f3a9086aff42b9ee483c09cf18e.tar.gz |
Merge "Remove a useless so-called test for arc4random."
-rw-r--r-- | tests/bionic/libc/Android.mk | 1 | ||||
-rw-r--r-- | tests/bionic/libc/other/test_arc4random.c | 40 |
2 files changed, 0 insertions, 41 deletions
diff --git a/tests/bionic/libc/Android.mk b/tests/bionic/libc/Android.mk index a29b7925..1e64591d 100644 --- a/tests/bionic/libc/Android.mk +++ b/tests/bionic/libc/Android.mk @@ -138,7 +138,6 @@ $(call device-test, $(sources)) # Third, the other tests sources := \ - other/test_arc4random.c \ other/test_sysconf.c \ other/test_vfprintf_leak.c \ diff --git a/tests/bionic/libc/other/test_arc4random.c b/tests/bionic/libc/other/test_arc4random.c deleted file mode 100644 index 4829a2d6..00000000 --- a/tests/bionic/libc/other/test_arc4random.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ -#include <stdio.h> - -int main(int argc, char *argv[]) -{ - unsigned int arc4random(); - - int i; - - for (i = 0; i < 50; i++) { - printf("%u\n", arc4random()); - } - return 0; -} |