示例#1
0
        public static int Main(string[] args)
        {
            int iRep = 0;
            int iObj = 0;

            Console.Out.WriteLine("Test should return with ExitCode 100 ...");

            switch (args.Length)
            {
            case 1:
                if (!Int32.TryParse(args[0], out iRep))
                {
                    iRep = 5;
                }
                break;

            case 2:
                if (!Int32.TryParse(args[0], out iRep))
                {
                    iRep = 5;
                }
                if (!Int32.TryParse(args[1], out iObj))
                {
                    iObj = 5000;
                }
                break;

            default:
                iRep = 5;
                iObj = 5000;
                break;
            }

            Console.Out.WriteLine("iRep= " + iRep + " ; iObj= " + iObj);
            GCQueue Mv_Obj = new GCQueue();

            if (Mv_Obj.runTest(iRep, iObj))
            {
                Console.WriteLine("Test Passed");
                return(100);
            }

            Console.WriteLine("Test Failed");
            return(1);
        }
示例#2
0
文件: GCQueue.cs 项目: enavro/coreclr
        public static int Main(String [] Args)
        {
            int iRep = 0;
            int iObj = 0;
            Console.Out.WriteLine("Test should return with ExitCode 100 ...");

            switch( Args.Length )
            {
                case 1:
                    if (!Int32.TryParse( Args[0], out iRep ))
                    {
                        iRep = 5;
                    }
                break;
                case 2:
                    if (!Int32.TryParse( Args[0], out iRep ))
                    {
                        iRep = 5;
                    }
                    if (!Int32.TryParse( Args[1], out iObj ))
                    {
                        iObj = 5000;
                    }
                break;
                default:
                    iRep = 5;
                    iObj = 5000;
                break;
            }

            Console.Out.WriteLine("iRep= "+iRep+ " ; iObj= "+iObj);
            GCQueue Mv_Obj = new GCQueue();

            if(Mv_Obj.runTest(iRep, iObj ))
            {
                Console.WriteLine("Test Passed");
                return 100;
            }

            Console.WriteLine("Test Failed");
            return 1;
        }