Skip to content

Commit c4e3d40

Browse files
committed
Update Kernel32Test.java
1 parent 13fadd1 commit c4e3d40

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/platform/test/com/sun/jna/platform/win32/Kernel32Test.java

+8
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,14 @@ public void testGetTickCount() throws InterruptedException {
378378
assertTrue(tick2 > tick1 || tick3 > tick2);
379379
}
380380

381+
public void testGetTickCount64() throws InterruptedException {
382+
long tick1 = Kernel32.INSTANCE.GetTickCount64();
383+
Thread.sleep(10);
384+
long tick2 = Kernel32.INSTANCE.GetTickCount64();
385+
386+
assertTrue(tick2 > tick1);
387+
}
388+
381389
public void testGetVersion() {
382390
DWORD version = Kernel32.INSTANCE.GetVersion();
383391
assertTrue("Version high should be non-zero: 0x" + Integer.toHexString(version.getHigh().intValue()), version.getHigh().intValue() != 0);

0 commit comments

Comments
 (0)