Changeset 3984 for branches/GRACE/src


Ignore:
Timestamp:
Aug 11, 2000, 4:22:35 AM (25 years ago)
Author:
bird
Message:

Added new checks and test in TestCaseExeLoad1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/test/win32ktst.c

    r3829 r3984  
    1 /* $Id: win32ktst.c,v 1.1 2000-07-16 22:18:16 bird Exp $
     1/* $Id: win32ktst.c,v 1.1.4.1 2000-08-11 02:22:35 bird Exp $
    22 *
    33 * Win32k test module.
     
    4242#include "devcmd.h"
    4343#include "os2krnl.h"
     44#include "avl.h"
     45#include "ldr.h"
    4446#include "ldrCalls.h"
    4547#include "test.h"
     
    650652{
    651653    APIRET rc;
     654    int    cch;
     655    char * psz;
    652656
    653657    /*
     
    662666    if (rc == NO_ERROR)
    663667    {
     668        psz = "BIN\\DEBUG\\LIBCONV.EXE\0";
    664669        printf("--- TestcaseExeLoad1 - loading libconv.exe (LX image) ----\n");
    665670        rc = CalltkExecPgm(EXEC_LOAD, NULL, NULL, "bin\\debug\\libconv.exe");
     671        #if 0 //not implemented by CalltkExecPgm...???
     672        /* check result */
     673        if (memcmp(achTkExecPgmArguments, psz, strlen(psz) + 1) != 0)
     674        {
     675            rc  = ERROR_BAD_ARGUMENTS;
     676            printf("Bad Arguments! (%s)\n", achTkExecPgmArguments);
     677        }
     678        #else
     679        psz = psz;
     680        #endif
    666681    }
    667682
    668683    if (rc == NO_ERROR)
    669684    {
     685        psz = "REXX\\TST.CMD\0OriginalArgument1 OriginalArgument2\0OriginalArgument3\0";
    670686        printf("--- TestcaseExeLoad1 - loading rexx\\tst.cmd (REXX script) ----\n");
    671         rc = CalltkExecPgm(EXEC_LOAD, NULL, NULL, "rexx\\tst.cmd");
    672     }
     687        rc = CalltkExecPgm(EXEC_LOAD, psz, NULL, "rexx\\tst.cmd");
     688
     689        /* check result */
     690        psz[strlen(psz)] = ' ';
     691        for (cch = 0; psz[cch] != '\0';)
     692            cch += strlen(psz + cch) + 1;
     693        cch++;
     694        if (memcmp(achTkExecPgmArguments + strlen(achTkExecPgmArguments) + 1, psz, cch) != 0)
     695        {
     696            rc  = ERROR_BAD_ARGUMENTS;
     697            printf("Bad Arguments! (achTkExecPgmArguments=%s).\n", achTkExecPgmArguments + strlen(achTkExecPgmArguments) + 1);
     698        }
     699    }
     700
     701    if (rc == NO_ERROR)
     702    {
     703        psz = "TEST\\TST.SH\0OrgArg1 OrgArg2\0OrgArg3\0";
     704        printf("--- TestcaseExeLoad1 - loading test\\testscript.sh (UNIX shell script) ----\n");
     705        rc = CalltkExecPgm(EXEC_LOAD, psz, NULL, "test\\tst.sh");
     706
     707        /* check result */
     708        psz[strlen(psz)] = ' ';
     709        for (cch = 0; psz[cch] != '\0';)
     710            cch += strlen(psz + cch) + 1;
     711        cch++;
     712        if (memcmp(achTkExecPgmArguments + strlen(achTkExecPgmArguments) + 1, psz, cch) != 0)
     713        {
     714            rc  = ERROR_BAD_ARGUMENTS;
     715            printf("Bad Arguments! (achTkExecPgmArguments=%s).\n", achTkExecPgmArguments + strlen(achTkExecPgmArguments) + 1);
     716        }
     717    }
     718
    673719
    674720    if (rc == NO_ERROR)
Note: See TracChangeset for help on using the changeset viewer.