Collapse the tests into one.

This commit is contained in:
Vassil Vassilev 2014-05-09 16:41:48 +02:00 committed by sftnight
parent bb72260cfc
commit 250dbcf655
2 changed files with 4 additions and 29 deletions

View File

@ -8,6 +8,10 @@
// RUN: %cling %s | FileCheck %s
// same test as test_01.c but ensuring the .c file to be processed
// is in the working directory (issue ROOT-6244)
// RUN: cd `dirname %s` ; %cling %s | FileCheck %s
extern "C" int printf(const char*,...);
const char* defaultArgV[] = {"A default argument", "", 0};

View File

@ -1,29 +0,0 @@
/*------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//----------------------------------------------------------------------------*/
// same test as test_01.c but ensuring the .c file to be processed
// is in the working directory (issue ROOT-6244)
// RUN: cd `dirname %s` ; %cling %s | FileCheck %s
extern "C" int printf(const char*,...);
const char* defaultArgV[] = {"A default argument", "", 0};
int test_exec_in_same_dir(int argc=12, const char** argv = defaultArgV)
{
int i;
for( i = 0; i < 5; ++i )
printf( "Hello World #%d\n", i );
// CHECK: Hello World #0
// CHECK: Hello World #1
// CHECK: Hello World #2
// CHECK: Hello World #3
// CHECK: Hello World #4
return 0;
}