OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [classpath/] [test/] [java.io/] [Test.java] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
/*************************************************************************
2
/* Test.java -- Base class for test classes
3
/*
4
/* Copyright (c) 1998 by Free Software Foundation, Inc.
5
/*
6
/* This program is free software; you can redistribute it and/or modify
7
/* it under the terms of the GNU General Public License as published
8
/* by the Free Software Foundation, version 2. (see COPYING)
9
/*
10
/* This program is distributed in the hope that it will be useful, but
11
/* WITHOUT ANY WARRANTY; without even the implied warranty of
12
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
/* GNU General Public License for more details.
14
/*
15
/* You should have received a copy of the GNU General Public License
16
/* along with this program; if not, write to the Free Software Foundation
17
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
18
/*************************************************************************/
19
 
20
public class Test
21
{
22
  public static void error()
23
  {
24
    System.out.print( "ERROR: " );
25
  }
26
 
27
  public static void pass()
28
  {
29
    System.out.print( "PASSED: " );
30
  }
31
 
32
  public static void fail()
33
  {
34
    System.out.print( "FAILED: " );
35
  }
36
 
37
  public static void pass( boolean exp_pass )
38
  {
39
    if( exp_pass )
40
      pass();
41
    else
42
      System.out.print( "XPASSED: " );
43
  }
44
 
45
  public static void fail( boolean exp_pass )
46
  {
47
    if( exp_pass )
48
      fail();
49
    else
50
      System.out.print( "XFAIL: " );
51
  }
52
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.