diff -r bf6a71c50e42 -r 09fa7c3c5079 genericopenlibs/liboil/tsrc/testsuite/copy/src/copy_ptr.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/genericopenlibs/liboil/tsrc/testsuite/copy/src/copy_ptr.c Thu Sep 02 22:16:05 2010 +0300 @@ -0,0 +1,179 @@ +// 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: +// + + + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include + +#define LOG_FILE "c:\\logs\\testsuite_copyptr_log.txt" +#include "std_log_result.h" +#define LOG_FILENAME_LINE __FILE__, __LINE__ +#define MAX_SIZE 64 +#define RES_SIZE 1 +#define SIZE 10 + + +uint8_t src1[MAX_SIZE], src2[MAX_SIZE]; + +void create_xml(int result) +{ + if(result) + assert_failed = 1; + + testResultXml("testsuite_copyptr"); + close_log_file(); +} + + +void test_copy_u8() +{ + uint8_t src[SIZE],dest[SIZE],check[SIZE]={0,0,0,1,2,3,4,5,0,0}; + int i; + + for(i=0;i