diff -r e5d77a29bdca -r 79045913e4e9 genericopenlibs/liboil/tsrc/testsuite/ref/src/splat.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/genericopenlibs/liboil/tsrc/testsuite/ref/src/splat.c Thu Aug 05 23:23:13 2010 +0530 @@ -0,0 +1,110 @@ +// 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_splat_log.txt" +#include "std_log_result.h" +#define LOG_FILENAME_LINE __FILE__, __LINE__ +#define MAX_SIZE 10 +#define SIZE 1 + + +void create_xml(int result) +{ + if(result) + assert_failed = 1; + + testResultXml("testsuite_splat"); + close_log_file(); +} + +void test_splat_u16_ns() + { + int i; + uint16_t sp1[SIZE]={10},res[MAX_SIZE]; + uint16_t check[MAX_SIZE]={10,10,10,10,10,10,10,10,10,10}; + + for(i=0;i