Updating the test case files
[IRC.git] / Robust / src / Tests / Atomic3.java
index 00128630049f4b3098c8d9138045613526a2b63a..f17fb65035cd0e73d783fb323e0e3373ab355a01 100644 (file)
@@ -1,13 +1,13 @@
 public class Atomic3 extends Thread {
        public Atomic3() {
        }
-       static Tree root;
+       Tree root;
        Integer count;
        public static void main(String[] st) {
                int mid = (128<<24)|(195<<16)|(175<<8)|70;
                int b;
                Atomic3 at3 = null;
-               Integer z;
+               Integer y,z;
                atomic {
                        at3 = global new Atomic3();
                        z = global new Integer(300);
@@ -15,9 +15,16 @@ public class Atomic3 extends Thread {
                        at3.root.insert(z);
                        b = at3.root.value.intValue();
                }
+               System.printString("b is ");
+               System.printInt(b);
+               System.printString("\n");
                atomic{
                        at3.root.item = 2445;
+                       y = global new Integer(400);
+                       at3.root.value = y;
+                       b = at3.root.value.intValue();
                }
+               System.printString("b is ");
                System.printInt(b);
                System.printString("\n");
                System.printString("Starting\n");
@@ -32,8 +39,8 @@ public class Atomic3 extends Thread {
                int a;
                atomic {
                        a = root.value.intValue();
-                       //a = root.item;
                }
+               System.printString("a is ");
                System.printInt(a);
                System.printString("\n");
        }