Changeset 4810 for trunk/src/win32k/test/win32ktst.c
- Timestamp:
- Dec 17, 2000, 12:03:32 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/test/win32ktst.c
r4787 r4810 1 /* $Id: win32ktst.c,v 1. 4 2000-12-11 06:53:57bird Exp $1 /* $Id: win32ktst.c,v 1.5 2000-12-16 23:03:32 bird Exp $ 2 2 * 3 3 * Win32k test module. … … 578 578 case 2: rc = TestCase2(); break; 579 579 case 3: rc = TestCase3(); break; 580 case 4: rc = TestCase4(); break; 581 case 5: rc = TestCase5(); break; 580 582 581 583 default: … … 772 774 rc = TestCaseExeLoad2(); 773 775 } 776 } 777 else 778 printf("!failed!\n"); 779 } 780 else 781 printf("!failed!\n"); 782 783 return rc; 784 } 785 786 787 /** 788 * Test case 4. 789 * Checks that all parameters are read correctly (3). 790 * 791 * @sketch Create init packet with no arguments. 792 * Initiate elf$ 793 * Create init packet with no arguments. 794 * Initiate win32k$ 795 * @returns 0 on success. 796 * 1 on failure. 797 * @status completely implemented. 798 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 799 */ 800 int TestCase4(void) 801 { 802 int rc = 1; 803 RP32INIT rpinit; 804 char * pszInitArgs = "-P:pe"; 805 806 /* $elf */ 807 initRPInit(SSToDS(&rpinit), pszInitArgs); 808 rc = InitElf(&rpinit); /* no SSToDS! */ 809 printf("InitElf returned status=0x%04x\n", rpinit.rph.Status); 810 if ((rpinit.rph.Status & (STDON | STERR)) == STDON) 811 { 812 /* $win32k */ 813 initRPInit(SSToDS(&rpinit), pszInitArgs); 814 rc = InitWin32k(&rpinit); /* no SSToDS! */ 815 printf("InitWin32k returned status=0x%04x\n", rpinit.rph.Status); 816 if ((rpinit.rph.Status & (STDON | STERR)) == STDON) 817 { 818 struct options opt = DEFAULT_OPTION_ASSIGMENTS; 819 opt.fPE = FLAGS_PE_PE; 820 821 rc = CompareOptions(SSToDS(&opt)); 822 /* 823 if (rc == NO_ERROR) 824 { 825 rc = TestCaseExeLoad2(); 826 } 827 */ 828 } 829 else 830 printf("!failed!\n"); 831 } 832 else 833 printf("!failed!\n"); 834 835 return rc; 836 } 837 838 839 /** 840 * Test case 5. 841 * Checks that all parameters are read correctly (3). 842 * 843 * @sketch Create init packet with no arguments. 844 * Initiate elf$ 845 * Create init packet with no arguments. 846 * Initiate win32k$ 847 * @returns 0 on success. 848 * 1 on failure. 849 * @status completely implemented. 850 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 851 */ 852 int TestCase5(void) 853 { 854 int rc = 1; 855 RP32INIT rpinit; 856 char * pszInitArgs = "-Pe:pe"; 857 858 /* $elf */ 859 initRPInit(SSToDS(&rpinit), pszInitArgs); 860 rc = InitElf(&rpinit); /* no SSToDS! */ 861 printf("InitElf returned status=0x%04x\n", rpinit.rph.Status); 862 if ((rpinit.rph.Status & (STDON | STERR)) == STDON) 863 { 864 /* $win32k */ 865 initRPInit(SSToDS(&rpinit), pszInitArgs); 866 rc = InitWin32k(&rpinit); /* no SSToDS! */ 867 printf("InitWin32k returned status=0x%04x\n", rpinit.rph.Status); 868 if ((rpinit.rph.Status & (STDON | STERR)) == STDON) 869 { 870 struct options opt = DEFAULT_OPTION_ASSIGMENTS; 871 opt.fPE = FLAGS_PE_PE; 872 873 rc = CompareOptions(SSToDS(&opt)); 874 /* 875 if (rc == NO_ERROR) 876 { 877 rc = TestCaseExeLoad2(); 878 } 879 */ 774 880 } 775 881 else
Note:
See TracChangeset
for help on using the changeset viewer.