genericopenlibs/openenvcore/libc/test/teststdlib/src/tstdlibserver.cpp
changeset 0 e4d67989cc36
child 20 a2e897c5c62b
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Name        : tstdlibserver.cpp
       
    15 //
       
    16 
       
    17 #include <c32comm.h>
       
    18 
       
    19 #if defined (__WINS__)
       
    20 #define PDD_NAME		_L("ECDRV")
       
    21 #else
       
    22 #define PDD_NAME		_L("EUART1")
       
    23 #define PDD2_NAME		_L("EUART2")
       
    24 #define PDD3_NAME		_L("EUART3")
       
    25 #define PDD4_NAME		_L("EUART4")
       
    26 #endif
       
    27 
       
    28 #define LDD_NAME		_L("ECOMM")
       
    29 
       
    30 /**
       
    31  * @file
       
    32  *
       
    33  * Pipe test server implementation
       
    34  */
       
    35 #include "tstdlibserver.h"
       
    36 #include "tstdlib.h"
       
    37 
       
    38 
       
    39 _LIT(KServerName, "tstdlib");
       
    40 
       
    41 CStdlibTestServer* CStdlibTestServer::NewL()
       
    42 	{
       
    43 	CStdlibTestServer *server = new(ELeave) CStdlibTestServer();
       
    44 	CleanupStack::PushL(server);
       
    45 	server->ConstructL(KServerName);
       
    46 	CleanupStack::Pop(server);
       
    47 	return server;
       
    48 	}
       
    49 
       
    50 static void InitCommsL()
       
    51     {
       
    52     TInt ret = User::LoadPhysicalDevice(PDD_NAME);
       
    53     User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
       
    54 
       
    55 #ifndef __WINS__
       
    56     ret = User::LoadPhysicalDevice(PDD2_NAME);
       
    57     ret = User::LoadPhysicalDevice(PDD3_NAME);
       
    58     ret = User::LoadPhysicalDevice(PDD4_NAME);
       
    59 #endif
       
    60 
       
    61     ret = User::LoadLogicalDevice(LDD_NAME);
       
    62     User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
       
    63     ret = StartC32();
       
    64     User::LeaveIfError(ret == KErrAlreadyExists?KErrNone:ret);
       
    65     }
       
    66 
       
    67 LOCAL_C void MainL()
       
    68 	{
       
    69 	// Leave the hooks in for platform security
       
    70 #if (defined __DATA_CAGING__)
       
    71 	RProcess().DataCaging(RProcess::EDataCagingOn);
       
    72 	RProcess().SecureApi(RProcess::ESecureApiOn);
       
    73 #endif
       
    74 	InitCommsL();
       
    75 	
       
    76 	CActiveScheduler* sched=NULL;
       
    77 	sched=new(ELeave) CActiveScheduler;
       
    78 	CActiveScheduler::Install(sched);
       
    79 	CStdlibTestServer* server = NULL;
       
    80 	// Create the CTestServer derived server
       
    81 	TRAPD(err, server = CStdlibTestServer::NewL());
       
    82 	if(!err)
       
    83 		{
       
    84 		// Sync with the client and enter the active scheduler
       
    85 		RProcess::Rendezvous(KErrNone);
       
    86 		sched->Start();
       
    87 		}
       
    88 	delete server;
       
    89 	delete sched;
       
    90 	}
       
    91 
       
    92 /**
       
    93  * Server entry point
       
    94  * @return Standard Epoc error code on exit
       
    95  */
       
    96 TInt main()
       
    97 	{
       
    98 	__UHEAP_MARK;
       
    99 	CTrapCleanup* cleanup = CTrapCleanup::New();
       
   100 	if(cleanup == NULL) 
       
   101 		{
       
   102 		return KErrNoMemory;  
       
   103 		}
       
   104 	TRAP_IGNORE(MainL());
       
   105 	delete cleanup;
       
   106 	__UHEAP_MARKEND;
       
   107 	
       
   108 	return KErrNone;
       
   109 	}
       
   110 
       
   111 CTestStep* CStdlibTestServer::CreateTestStep(const TDesC& aStepName)
       
   112 	{
       
   113 	CTestStep* testStep = NULL;
       
   114 
       
   115 	// This server creates just one step but create as many as you want
       
   116 	// They are created "just in time" when the worker thread is created
       
   117 	// install steps
       
   118 	if(aStepName == Kmalloc_Test0)
       
   119 		{
       
   120 		testStep = new CTestStdlib(aStepName);
       
   121 		}
       
   122 	if(aStepName == Kmalloc_Test1)
       
   123 		{
       
   124 		testStep = new CTestStdlib(aStepName);
       
   125 		}
       
   126 	if(aStepName == Kmalloc_Test2)
       
   127 		{
       
   128 		testStep = new CTestStdlib(aStepName);
       
   129 		}
       
   130 	if(aStepName == Kcalloc_Test0)
       
   131 		{
       
   132 		testStep = new CTestStdlib(aStepName);
       
   133 		}
       
   134 	if(aStepName == Kcalloc_Test1)
       
   135 		{
       
   136 		testStep = new CTestStdlib(aStepName);
       
   137 		}
       
   138 	if(aStepName == Kcalloc_Test2)
       
   139 		{
       
   140 		testStep = new CTestStdlib(aStepName);
       
   141 		}
       
   142 
       
   143 	if(aStepName == Krealloc_Test0)
       
   144 		{
       
   145 		testStep = new CTestStdlib(aStepName);
       
   146 		}
       
   147 	if(aStepName == Krealloc_Test1)
       
   148 		{
       
   149 		testStep = new CTestStdlib(aStepName);
       
   150 		}
       
   151 	if(aStepName == Krealloc_Test2)
       
   152 		{
       
   153 		testStep = new CTestStdlib(aStepName);
       
   154 		}
       
   155 	if(aStepName == Krealloc_Test3)
       
   156 		{
       
   157 		testStep = new CTestStdlib(aStepName);
       
   158 		}
       
   159 	if(aStepName == Krealloc_Test4)
       
   160 		{
       
   161 		testStep = new CTestStdlib(aStepName);
       
   162 		}
       
   163 
       
   164 	if(aStepName == Kfree_Test0)
       
   165 		{
       
   166 		testStep = new CTestStdlib(aStepName);
       
   167 		}
       
   168 	
       
   169 	if(aStepName == Kgetenv_Test0)
       
   170 		{
       
   171 		testStep = new CTestStdlib(aStepName);
       
   172 		}
       
   173 	if(aStepName == Kgetenv_Test1)
       
   174 		{
       
   175 		testStep = new CTestStdlib(aStepName);
       
   176 		}
       
   177 
       
   178 	if(aStepName == Ksetenv_Test0)
       
   179 		{
       
   180 		testStep = new CTestStdlib(aStepName);
       
   181 		}
       
   182 	if(aStepName == Ksetenv_Test1)
       
   183 		{
       
   184 		testStep = new CTestStdlib(aStepName);
       
   185 		}
       
   186 	if(aStepName == Ksetenv_Test2)
       
   187 		{
       
   188 		testStep = new CTestStdlib(aStepName);
       
   189 		}
       
   190 	if(aStepName == Ksetenv_Test3)
       
   191 		{
       
   192 		testStep = new CTestStdlib(aStepName);
       
   193 		}
       
   194 	if(aStepName == Ksetenv_Test4)
       
   195 		{
       
   196 		testStep = new CTestStdlib(aStepName);
       
   197 		}
       
   198 
       
   199 	if(aStepName == Kputenv_Test0)
       
   200 		{
       
   201 		testStep = new CTestStdlib(aStepName);
       
   202 		}
       
   203 	if(aStepName == Kputenv_Test1)
       
   204 		{
       
   205 		testStep = new CTestStdlib(aStepName);
       
   206 		}
       
   207 	if(aStepName == Kputenv_Test2)
       
   208 		{
       
   209 		testStep = new CTestStdlib(aStepName);
       
   210 		}
       
   211 	if(aStepName == Kputenv_Test3)
       
   212 		{
       
   213 		testStep = new CTestStdlib(aStepName);
       
   214 		}
       
   215 	if(aStepName == Kunsetenv_Test0)
       
   216 		{
       
   217 		testStep = new CTestStdlib(aStepName);
       
   218 		}
       
   219 	
       
   220 	if(aStepName == Ksystem_Test0)
       
   221 		{
       
   222 		testStep = new CTestStdlib(aStepName);
       
   223 		}
       
   224 	if(aStepName == Ksystem_Test1)
       
   225 		{
       
   226 		testStep = new CTestStdlib(aStepName);
       
   227 		}
       
   228 	if(aStepName == Ksystem_Test2)
       
   229 		{
       
   230 		testStep = new CTestStdlib(aStepName);
       
   231 		}
       
   232 	if(aStepName == Ksystem_Test3)
       
   233 		{
       
   234 		testStep = new CTestStdlib(aStepName);
       
   235 		}
       
   236 	if(aStepName == Ksystem_Test4)
       
   237 		{
       
   238 		testStep = new CTestStdlib(aStepName);
       
   239 		}
       
   240 	if(aStepName == Ksystem_Test5)
       
   241 		{
       
   242 		testStep = new CTestStdlib(aStepName);
       
   243 		}
       
   244 	if(aStepName == Ksystem_Test6)
       
   245 		{
       
   246 		testStep = new CTestStdlib(aStepName);
       
   247 		}
       
   248 
       
   249 	if(aStepName == Kabort_Test0)
       
   250 		{
       
   251 		testStep = new CTestStdlib(aStepName);
       
   252 		}
       
   253 	if(aStepName == Kfopen_Test)
       
   254 		{
       
   255 		testStep = new CTestStdlib(aStepName);
       
   256 		}
       
   257 	if(aStepName == Kexit_Test0)
       
   258 		{
       
   259 		testStep = new CTestStdlib(aStepName);
       
   260 		}
       
   261 	if(aStepName == Kexit_Test1)
       
   262 		{
       
   263 		testStep = new CTestStdlib(aStepName);
       
   264 		}
       
   265 
       
   266 	if(aStepName == K_exitE_Test0)
       
   267 		{
       
   268 		testStep = new CTestStdlib(aStepName);
       
   269 		}
       
   270 
       
   271 	if(aStepName == K_exit_Test0)
       
   272 		{
       
   273 		testStep = new CTestStdlib(aStepName);
       
   274 		}
       
   275 
       
   276 	if(aStepName == Katexit_Test0)
       
   277 		{
       
   278 		testStep = new CTestStdlib(aStepName);
       
   279 		}
       
   280 	if(aStepName == Katexit_Test1)
       
   281 		{
       
   282 		testStep = new CTestStdlib(aStepName);
       
   283 		}
       
   284 
       
   285 	if(aStepName == Kabs_good_param)
       
   286 		{
       
   287 		testStep = new CTestStdlib(aStepName);
       
   288 		}
       
   289 	if(aStepName == Kabs_pos_max)
       
   290 		{
       
   291 		testStep = new CTestStdlib(aStepName);
       
   292 		}
       
   293 	if(aStepName == Kabs_neg_max)
       
   294 		{
       
   295 		testStep = new CTestStdlib(aStepName);
       
   296 		}
       
   297 
       
   298 	if(aStepName == Klabs_good_param)
       
   299 		{
       
   300 		testStep = new CTestStdlib(aStepName);
       
   301 		}
       
   302 	if(aStepName == Klabs_pos_max)
       
   303 		{
       
   304 		testStep = new CTestStdlib(aStepName);
       
   305 		}
       
   306 	if(aStepName == Klabs_neg_max)
       
   307 		{
       
   308 		testStep = new CTestStdlib(aStepName);
       
   309 		}
       
   310 
       
   311 	if(aStepName == Kllabs_good_param)
       
   312 		{
       
   313 		testStep = new CTestStdlib(aStepName);
       
   314 		}
       
   315 	if(aStepName == Kllabs_pos_max)
       
   316 		{
       
   317 		testStep = new CTestStdlib(aStepName);
       
   318 		}
       
   319 	if(aStepName == Kllabs_neg_max)
       
   320 		{
       
   321 		testStep = new CTestStdlib(aStepName);
       
   322 		}
       
   323 	
       
   324 	if(aStepName == Katoi_null_string)
       
   325 		{
       
   326 		testStep = new CTestStdlib(aStepName);
       
   327 		}
       
   328 	if(aStepName == Katoi_good_param)
       
   329 		{
       
   330 		testStep = new CTestStdlib(aStepName);
       
   331 		}
       
   332 
       
   333 	if(aStepName == Katof_null_string)
       
   334 		{
       
   335 		testStep = new CTestStdlib(aStepName);
       
   336 		}
       
   337 	if(aStepName == Katof_pos_floatnum)
       
   338 		{
       
   339 		testStep = new CTestStdlib(aStepName);
       
   340 		}
       
   341 	if(aStepName == Katof_neg_floatnum)
       
   342 		{
       
   343 		testStep = new CTestStdlib(aStepName);
       
   344 		}
       
   345 	if(aStepName == Katof_alpha)
       
   346 		{
       
   347 		testStep = new CTestStdlib(aStepName);
       
   348 		}
       
   349 	if(aStepName == Katof_alpha_floatnum)
       
   350 		{
       
   351 		testStep = new CTestStdlib(aStepName);
       
   352 		}
       
   353 	if(aStepName == Katof_pos_floatnum_alpha)
       
   354 		{
       
   355 		testStep = new CTestStdlib(aStepName);
       
   356 		}
       
   357 	if(aStepName == Katof_neg_floatnum_alpha )
       
   358 		{
       
   359 		testStep = new CTestStdlib(aStepName);
       
   360 		}
       
   361 	if(aStepName == Katof_leading_zero )
       
   362 		{
       
   363 		testStep = new CTestStdlib(aStepName);
       
   364 		}
       
   365 	if(aStepName == Katof_neg_leading_zero )
       
   366 		{
       
   367 		testStep = new CTestStdlib(aStepName);
       
   368 		}
       
   369 	if(aStepName == Katof_pos_floatnum_pos_expo)
       
   370 		{
       
   371 		testStep = new CTestStdlib(aStepName);
       
   372 		}
       
   373 	if(aStepName == Katof_neg_floatnum_pos_expo)
       
   374 		{
       
   375 		testStep = new CTestStdlib(aStepName);
       
   376 		}
       
   377 	if(aStepName == Katof_pos_floatnum_neg_expo )
       
   378 		{
       
   379 		testStep = new CTestStdlib(aStepName);
       
   380 		}
       
   381 	if(aStepName == Katof_neg_floatnum_neg_expo)
       
   382 		{
       
   383 		testStep = new CTestStdlib(aStepName);
       
   384 		}
       
   385 
       
   386 	if(aStepName == Katol_null_string)
       
   387 		{
       
   388 		testStep = new CTestStdlib(aStepName);
       
   389 		}
       
   390 	if(aStepName == Katol_good_param)
       
   391 		{
       
   392 		testStep = new CTestStdlib(aStepName);
       
   393 		}
       
   394 
       
   395 	if(aStepName == Katollbasic)
       
   396 		{
       
   397 		testStep = new CTestStdlib(aStepName);
       
   398 		}
       
   399 	if(aStepName == Katollspacecheck)
       
   400 		{
       
   401 		testStep = new CTestStdlib(aStepName);
       
   402 		}
       
   403 	if(aStepName == Katollsignedsrc)
       
   404 		{
       
   405 		testStep = new CTestStdlib(aStepName);
       
   406 		}
       
   407 	if(aStepName == Katolloctalcheck)
       
   408 		{
       
   409 		testStep = new CTestStdlib(aStepName);
       
   410 		}
       
   411 	if(aStepName == Katollhexcheck)
       
   412 		{
       
   413 		testStep = new CTestStdlib(aStepName);
       
   414 		}
       
   415 	if(aStepName == Katolldigitfirstcheck)
       
   416 		{
       
   417 		testStep = new CTestStdlib(aStepName);
       
   418 		}
       
   419 	if(aStepName == Katollalphafirstcheck)
       
   420 		{
       
   421 		testStep = new CTestStdlib(aStepName);
       
   422 		}
       
   423 	if(aStepName == Katollalphacheck)
       
   424 		{
       
   425 		testStep = new CTestStdlib(aStepName);
       
   426 		}
       
   427 	if(aStepName == Katollleadingzeroscheck)
       
   428 		{
       
   429 		testStep = new CTestStdlib(aStepName);
       
   430 		}
       
   431 	if(aStepName == Kdiv_good_param)
       
   432 		{
       
   433 		testStep = new CTestStdlib(aStepName);
       
   434 		}
       
   435 	if(aStepName == Kldiv_good_param)
       
   436 		{
       
   437 		testStep = new CTestStdlib(aStepName);
       
   438 		}
       
   439 	if(aStepName == Klldiv_good_param0)
       
   440 		{
       
   441 		testStep = new CTestStdlib(aStepName);
       
   442 		}
       
   443 	if(aStepName == Klldiv_good_param1)
       
   444 		{
       
   445 		testStep = new CTestStdlib(aStepName);
       
   446 		}
       
   447 	if(aStepName == Klldiv_good_param2)
       
   448 		{
       
   449 		testStep = new CTestStdlib(aStepName);
       
   450 		}
       
   451 	if(aStepName == Klldiv_good_param3)
       
   452 		{
       
   453 		testStep = new CTestStdlib(aStepName);
       
   454 		}
       
   455 	if(aStepName == Klldiv_good_param4)
       
   456 		{
       
   457 		testStep = new CTestStdlib(aStepName);
       
   458 		}
       
   459 	if(aStepName == Krand)
       
   460 		{
       
   461 		testStep = new CTestStdlib(aStepName);
       
   462 		}
       
   463 	if(aStepName == Ksrand)
       
   464 		{
       
   465 		testStep = new CTestStdlib(aStepName);
       
   466 		}
       
   467 	if(aStepName == Kstrtol_good_param)
       
   468 		{
       
   469 		testStep = new CTestStdlib(aStepName);
       
   470 		}
       
   471 	if(aStepName == Kstrtol_null_string)
       
   472 		{
       
   473 		testStep = new CTestStdlib(aStepName);
       
   474 		}
       
   475 	if(aStepName == Kstrtod_null_string)
       
   476 		{
       
   477 		testStep = new CTestStdlib(aStepName);
       
   478 		}
       
   479 	if(aStepName == Kstrtod_good_param)
       
   480 		{
       
   481 		testStep = new CTestStdlib(aStepName);
       
   482 		}
       
   483 	if(aStepName == Kstrtod_nan)
       
   484 		{
       
   485 		testStep = new CTestStdlib(aStepName);
       
   486 		}
       
   487 	if(aStepName == Kstrtod_inf)
       
   488 		{
       
   489 		testStep = new CTestStdlib(aStepName);
       
   490 		}
       
   491 	if(aStepName == Kstrtod_neg_cases)
       
   492 		{
       
   493 		testStep = new CTestStdlib(aStepName);
       
   494 		}
       
   495 	if(aStepName == Kstrtod_misc_cases)
       
   496 		{
       
   497 		testStep = new CTestStdlib(aStepName);
       
   498 		}
       
   499 	if(aStepName == Kstrtoul_null_string)
       
   500 		{
       
   501 		testStep = new CTestStdlib(aStepName);
       
   502 		}
       
   503 	if(aStepName == Kstrtoul_good_param)
       
   504 		{
       
   505 		testStep = new CTestStdlib(aStepName);
       
   506 		}
       
   507 	if(aStepName == Kstrtoul_neg_leading_zeroes)
       
   508 		{
       
   509 		testStep = new CTestStdlib(aStepName);
       
   510 		}
       
   511 	if(aStepName == Kstrtoul_neg_num_alpha)
       
   512 		{
       
   513 		testStep = new CTestStdlib(aStepName);
       
   514 		}
       
   515 	if(aStepName == Kqsort_integers)
       
   516 		{
       
   517 		testStep = new CTestStdlib(aStepName);
       
   518 		}
       
   519 	if(aStepName == Kqsort_strings)
       
   520 		{
       
   521 		testStep = new CTestStdlib(aStepName);
       
   522 		}
       
   523 	if(aStepName == Kbinsearch_integers)
       
   524 		{
       
   525 		testStep = new CTestStdlib(aStepName);
       
   526 		}
       
   527 	if(aStepName == Kbinsearch_strings)
       
   528 		{
       
   529 		testStep = new CTestStdlib(aStepName);
       
   530 		}
       
   531 	if(aStepName == Kisatty_Test0)
       
   532 		{
       
   533 		testStep = new CTestStdlib(aStepName);
       
   534 		}
       
   535 	if(aStepName == Kisatty_Test1)
       
   536 		{
       
   537 		testStep = new CTestStdlib(aStepName);
       
   538 		}
       
   539 	if(aStepName == Kusleep_Test0)
       
   540 		{
       
   541 		testStep = new CTestStdlib(aStepName);
       
   542 		}
       
   543 	if(aStepName == Kusleep_Test1)
       
   544 		{
       
   545 		testStep = new CTestStdlib(aStepName);
       
   546 		}
       
   547 	if(aStepName == Kusleep_Test2)
       
   548 		{
       
   549 		testStep = new CTestStdlib(aStepName);
       
   550 		}
       
   551 	if(aStepName == Kgetcwd_Test0)
       
   552 		{
       
   553 		testStep = new CTestStdlib(aStepName);
       
   554 		}
       
   555 	if(aStepName == Kgetcwd_Test1)
       
   556 		{
       
   557 		testStep = new CTestStdlib(aStepName);
       
   558 		}
       
   559 	if(aStepName == Kgetcwd_Test2)
       
   560 		{
       
   561 		testStep = new CTestStdlib(aStepName);
       
   562 		}
       
   563 	if(aStepName == Kgetcwd_Test3)
       
   564 		{
       
   565 		testStep = new CTestStdlib(aStepName);
       
   566 		}
       
   567 	if(aStepName == Ktmpfile_Test0)
       
   568 		{
       
   569 		testStep = new CTestStdlib(aStepName);
       
   570 		}
       
   571 	if(aStepName == Ktmpfile_Test1)
       
   572 		{
       
   573 		testStep = new CTestStdlib(aStepName);
       
   574 		}
       
   575 	if(aStepName == Ktmpnam_Test0)
       
   576 		{
       
   577 		testStep = new CTestStdlib(aStepName);
       
   578 		}
       
   579 	if(aStepName == Ktmpnam_Test1)
       
   580 		{
       
   581 		testStep = new CTestStdlib(aStepName);
       
   582 		}
       
   583 	if(aStepName == Krealpath_Test0)
       
   584 		{
       
   585 		testStep = new CTestStdlib(aStepName);
       
   586 		}
       
   587 	if(aStepName == Krealpath_Test1)
       
   588 		{
       
   589 		testStep = new CTestStdlib(aStepName);
       
   590 		}
       
   591 	if(aStepName == Krealpath_Test2)
       
   592 		{
       
   593 		testStep = new CTestStdlib(aStepName);
       
   594 		}
       
   595 	if(aStepName == Krealpath_Test3)
       
   596 		{
       
   597 		testStep = new CTestStdlib(aStepName);
       
   598 		}
       
   599 	if(aStepName == Krealpath_Test4)
       
   600 		{
       
   601 		testStep = new CTestStdlib(aStepName);
       
   602 		}
       
   603 	if(aStepName == Kperror_Test0)
       
   604 		{
       
   605 		testStep = new CTestStdlib(aStepName);
       
   606 		}
       
   607 	if(aStepName == Kmkstemp_Test0)
       
   608 		{
       
   609 		testStep = new CTestStdlib(aStepName);
       
   610 		}
       
   611 	if(aStepName == Kmkstemp_Test1)
       
   612 		{
       
   613 		testStep = new CTestStdlib(aStepName);
       
   614 		}
       
   615 	if(aStepName == Kconfstr_Test0)
       
   616 		{
       
   617 		testStep = new CTestStdlib(aStepName);
       
   618 		}
       
   619 	if(aStepName == Kconfstr_Test1)
       
   620 		{
       
   621 		testStep = new CTestStdlib(aStepName);
       
   622 		}
       
   623 	if(aStepName == Kfpathconf_Test0)
       
   624 		{
       
   625 		testStep = new CTestStdlib(aStepName);
       
   626 		}
       
   627 	if(aStepName == Kfpathconf_Test1)
       
   628 		{
       
   629 		testStep = new CTestStdlib(aStepName);
       
   630 		}
       
   631 	if(aStepName == Kfilelock_Test0)
       
   632 		{
       
   633 		testStep = new CTestStdlib(aStepName);
       
   634 		}
       
   635 	if(aStepName == Kfilelock_Test1)
       
   636 		{
       
   637 		testStep = new CTestStdlib(aStepName);
       
   638 		}
       
   639 	if(aStepName == Kfilelock_Test2)
       
   640 		{
       
   641 		testStep = new CTestStdlib(aStepName);
       
   642 		}
       
   643 	if(aStepName == Kfilelock_Test3)
       
   644 		{
       
   645 		testStep = new CTestStdlib(aStepName);
       
   646 		}
       
   647 	if(aStepName == KgetoptTest1)
       
   648 		{
       
   649 		testStep = new CTestStdlib(aStepName);
       
   650 		}
       
   651 	if(aStepName == KgetoptTest2)
       
   652 		{
       
   653 		testStep = new CTestStdlib(aStepName);
       
   654 		}
       
   655 	if(aStepName == KgetoptTest3)
       
   656 		{
       
   657 		testStep = new CTestStdlib(aStepName);
       
   658 		}
       
   659 	if(aStepName == KgetoptTest4)
       
   660 		{
       
   661 		testStep = new CTestStdlib(aStepName);
       
   662 		}
       
   663 	if(aStepName == KgetoptTest5)
       
   664 		{
       
   665 		testStep = new CTestStdlib(aStepName);
       
   666 		}   	
       
   667 	if(aStepName == KgetoptTest6)
       
   668 		{
       
   669 		testStep = new CTestStdlib(aStepName);
       
   670 		}
       
   671 	if(aStepName == KgetoptTest_long1)
       
   672 		{
       
   673 		testStep = new CTestStdlib(aStepName);
       
   674 		}
       
   675 	if(aStepName == KgetoptTest_long2)
       
   676 		{
       
   677 		testStep = new CTestStdlib(aStepName);
       
   678 		}
       
   679 	if(aStepName == KgetoptTest_long3)
       
   680 		{
       
   681 		testStep = new CTestStdlib(aStepName);
       
   682 		}
       
   683 	if(aStepName == KgetoptTest_long4)
       
   684 		{
       
   685 		testStep = new CTestStdlib(aStepName);
       
   686 		}
       
   687 	if(aStepName == KTestlseek)
       
   688 		{
       
   689 		testStep = new CTestStdlib(aStepName);
       
   690 		}
       
   691 	if(aStepName == KTestsigemptyset)
       
   692 		{
       
   693 		testStep = new CTestStdlib(aStepName);
       
   694 		}	
       
   695 	if(aStepName == Kstrfmon1)
       
   696 		{
       
   697 		testStep = new CTestStdlib(aStepName);
       
   698 		}	
       
   699 	if(aStepName == KTestRealPath5)
       
   700 		{
       
   701 		testStep = new CTestStdlib(aStepName);
       
   702 		}	
       
   703 	if(aStepName == KTestlseek1)
       
   704 		{
       
   705 		testStep = new CTestStdlib(aStepName);
       
   706 		}
       
   707 	if(aStepName == KTestlseek2)
       
   708 		{
       
   709 		testStep = new CTestStdlib(aStepName);
       
   710 		}
       
   711 	if(aStepName == KTestlseek3)
       
   712 		{
       
   713 		testStep = new CTestStdlib(aStepName);
       
   714 		}
       
   715 	if(aStepName == KgetoptTest_long5)
       
   716 		{
       
   717 		testStep = new CTestStdlib(aStepName);
       
   718 		}
       
   719 	if(aStepName == KsetjmpTest)
       
   720 		{
       
   721 		testStep = new CTestStdlib(aStepName);
       
   722 		}
       
   723 	if(aStepName == KabortTest)
       
   724 		{
       
   725 		testStep = new CTestStdlib(aStepName);
       
   726 		}
       
   727 	if(aStepName == KchownTest)
       
   728 		{
       
   729 		testStep = new CTestStdlib(aStepName);
       
   730 		}
       
   731 	if(aStepName == KiconvTest)
       
   732 		{
       
   733 		testStep = new CTestStdlib(aStepName);
       
   734 		}
       
   735 	if(aStepName == KsetgrentTest)
       
   736 		{
       
   737 		testStep = new CTestStdlib(aStepName);
       
   738 		}
       
   739 	if(aStepName == KwcreatTest)
       
   740 		{
       
   741 		testStep = new CTestStdlib(aStepName);
       
   742 		}
       
   743 	if(aStepName == Katof_locale)
       
   744 		{
       
   745 		testStep = new CTestStdlib(aStepName);
       
   746 		}
       
   747 	if(aStepName == Kstrtod_locale)
       
   748 		{
       
   749 		testStep = new CTestStdlib(aStepName);
       
   750 		}
       
   751 	if(aStepName == Kbinsearch_integers1)
       
   752 		{
       
   753 		testStep = new CTestStdlib(aStepName);
       
   754 		}
       
   755 	if(aStepName == Kcalloc_Test3)
       
   756 		{
       
   757 		testStep = new CTestStdlib(aStepName);
       
   758 		}
       
   759 	if(aStepName == Kcalloc_Test4)
       
   760 		{
       
   761 		testStep = new CTestStdlib(aStepName);
       
   762 		}
       
   763 	if(aStepName == Kgetenv_Test2)
       
   764 		{
       
   765 		testStep = new CTestStdlib(aStepName);
       
   766 		}
       
   767 	if(aStepName == Kreallocf_Test0)
       
   768 		{
       
   769 		testStep = new CTestStdlib(aStepName);
       
   770 		}
       
   771 	if(aStepName == Katexit_Test2)
       
   772 		{
       
   773 		testStep = new CTestStdlib(aStepName);
       
   774 		}
       
   775 	if(aStepName == Kstrtol_space_string)
       
   776 		{
       
   777 		testStep = new CTestStdlib(aStepName);
       
   778 		}
       
   779 	if(aStepName == Kstrtol_extreme_string)
       
   780 		{
       
   781 		testStep = new CTestStdlib(aStepName);
       
   782 		}
       
   783 	if(aStepName == Kstrtol_extreme_string1)
       
   784 		{
       
   785 		testStep = new CTestStdlib(aStepName);
       
   786 		}
       
   787 	if(aStepName == Kstrtoll_extreme_string)
       
   788 		{
       
   789 		testStep = new CTestStdlib(aStepName);
       
   790 		}
       
   791 	if(aStepName == Kstrtoll_extreme_string1)
       
   792 		{
       
   793 		testStep = new CTestStdlib(aStepName);
       
   794 		}
       
   795 	if(aStepName == Kstrtoll_good_param)
       
   796 		{
       
   797 		testStep = new CTestStdlib(aStepName);
       
   798 		}
       
   799 	if(aStepName == Kstrtoul_extreme_string)
       
   800 		{
       
   801 		testStep = new CTestStdlib(aStepName);
       
   802 		}
       
   803 	if(aStepName == Kstrtoul_extreme_string1)
       
   804 		{
       
   805 		testStep = new CTestStdlib(aStepName);
       
   806 		}
       
   807 	if(aStepName == Kqsort_integers1)
       
   808 		{
       
   809 		testStep = new CTestStdlib(aStepName);
       
   810 		}
       
   811 	if(aStepName == Kqsort_integers2)
       
   812 		{
       
   813 		testStep = new CTestStdlib(aStepName);
       
   814 		}
       
   815 	if(aStepName == Kqsort_integers3)
       
   816 		{
       
   817 		testStep = new CTestStdlib(aStepName);
       
   818 		}
       
   819 	else if (aStepName == Kstrtoullbasic)
       
   820 		{
       
   821 		testStep = new CTestStdlib(aStepName);
       
   822 		}
       
   823 	else if (aStepName == Kstrtoullneg)
       
   824 		{
       
   825 		testStep = new CTestStdlib(aStepName);
       
   826 		}
       
   827 	else if (aStepName == Kstrtoullpos)
       
   828 		{
       
   829 		testStep = new CTestStdlib(aStepName);
       
   830 		}
       
   831 	else if (aStepName == Kstrtoullbase)
       
   832 		{
       
   833 		testStep = new CTestStdlib(aStepName);
       
   834 		}
       
   835 	else if (aStepName == Kstrtoulpos)
       
   836 		{
       
   837 		testStep = new CTestStdlib(aStepName);
       
   838 		}
       
   839 	else if (aStepName == Kstrtoimaxbasic)
       
   840 		{
       
   841 		testStep = new CTestStdlib(aStepName);
       
   842 		}
       
   843 	else if (aStepName == Kstrtoimaxbasic1)
       
   844 		{
       
   845 		testStep = new CTestStdlib(aStepName);
       
   846 		}
       
   847 	else if (aStepName == Kstrtoimaxbasic2)
       
   848 		{
       
   849 		testStep = new CTestStdlib(aStepName);
       
   850 		}
       
   851 	else if (aStepName == Kstrtoumaxbasic)
       
   852 		{
       
   853 		testStep = new CTestStdlib(aStepName);
       
   854 		}
       
   855 	else if (aStepName == Kstrtoumaxbasic1)
       
   856 		{
       
   857 		testStep = new CTestStdlib(aStepName);
       
   858 		}
       
   859 	else if (aStepName == Kstrtoumaxbasic2)
       
   860 		{
       
   861 		testStep = new CTestStdlib(aStepName);
       
   862 		}
       
   863 	if(aStepName == Kconfstr_Test2)
       
   864 		{
       
   865 		testStep = new CTestStdlib(aStepName);
       
   866 		}
       
   867 	if(aStepName == Ktmpfile_fseek)
       
   868 		{
       
   869 		testStep = new CTestStdlib(aStepName);
       
   870 		}
       
   871 	return testStep;
       
   872 	}
       
   873 
       
   874