-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move atomic instrumentation to application level.
- Loading branch information
Showing
6 changed files
with
60 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 11 additions & 9 deletions
20
integration-tests/src/test/java/cmu/pasta/fray/it/scheduler/AtomicTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
package cmu.pasta.fray.it.scheduler; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.concurrent.atomic.AtomicInteger; | ||
|
||
|
||
//public class AtomicTest extends IntegrationTestRunner { | ||
// @Test | ||
// public void testInterleaving1() { | ||
// runTest("T1T2"); | ||
// } | ||
// | ||
// @Test | ||
// public void testInterleaving2() { | ||
// runTest("T2T1"); | ||
// } | ||
// | ||
// @Test | ||
// public void testInterleaving3() { | ||
// runTest("alternateT2T1"); | ||
// void testAtomic() { | ||
// AtomicInteger i = new AtomicInteger(0); | ||
// | ||
// Thread t = new Thread(() -> { | ||
// intei.incrementAndGet(); | ||
// }); | ||
// } | ||
// | ||
//} |