diff options
author | Elliott Hughes <enh@google.com> | 2014-06-21 09:47:22 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-06-21 09:47:22 +0000 |
commit | 676880b973daa4f0b214b51596e138a3702e5f17 (patch) | |
tree | d8112c4f256c886c61e84a267050c11b4caedaba | |
parent | ef2ec0beea13ae7de6ec2050e535fc360b4105be (diff) | |
parent | 0795553f0c913f3a9086aff42b9ee483c09cf18e (diff) | |
download | extras-676880b973daa4f0b214b51596e138a3702e5f17.tar.gz |
am 0795553f: Merge "Remove a useless so-called test for arc4random."
* commit '0795553f0c913f3a9086aff42b9ee483c09cf18e':
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; -} |