Changeset 3984 for branches/GRACE/src
- Timestamp:
- Aug 11, 2000, 4:22:35 AM (25 years ago)
- 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:16bird Exp $1 /* $Id: win32ktst.c,v 1.1.4.1 2000-08-11 02:22:35 bird Exp $ 2 2 * 3 3 * Win32k test module. … … 42 42 #include "devcmd.h" 43 43 #include "os2krnl.h" 44 #include "avl.h" 45 #include "ldr.h" 44 46 #include "ldrCalls.h" 45 47 #include "test.h" … … 650 652 { 651 653 APIRET rc; 654 int cch; 655 char * psz; 652 656 653 657 /* … … 662 666 if (rc == NO_ERROR) 663 667 { 668 psz = "BIN\\DEBUG\\LIBCONV.EXE\0"; 664 669 printf("--- TestcaseExeLoad1 - loading libconv.exe (LX image) ----\n"); 665 670 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 666 681 } 667 682 668 683 if (rc == NO_ERROR) 669 684 { 685 psz = "REXX\\TST.CMD\0OriginalArgument1 OriginalArgument2\0OriginalArgument3\0"; 670 686 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 673 719 674 720 if (rc == NO_ERROR)
Note:
See TracChangeset
for help on using the changeset viewer.