diff -r a1e347446159 -r 28ccaba883f4 genericopenlibs/liboil/tsrc/testsuite/random/src/random.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/genericopenlibs/liboil/tsrc/testsuite/random/src/random.c Wed Oct 13 19:39:18 2010 +0530 @@ -0,0 +1,104 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#include +#include +#include +#include + +#include + +#define LOG_FILE "c:\\logs\\testsuite_random_log.txt" +#include "std_log_result.h" +#define LOG_FILENAME_LINE __FILE__, __LINE__ + +#define SIZE 20 + +void create_xml(int result) +{ + if(result) + assert_failed = 1; + + testResultXml("testsuite_random"); + close_log_file(); +} + +void test_oil_random_s64() + { + int i = 0; + int pos = SIZE; + + oil_type_s64 output1[SIZE]; + oil_type_s64 output2[SIZE]; + + oil_random_s64(output1, SIZE); + oil_random_s64(output2, SIZE); + + for(i=0; i