Skip to content

Commit adc8b0d

Browse files
committed
testing github action
1 parent 80ba751 commit adc8b0d

File tree

3 files changed

+38
-23
lines changed

3 files changed

+38
-23
lines changed

src/main/kotlin/vkk/cleaner.kt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
package vkk
22

3-
//import glm_.L
4-
//import java.lang.ref.Cleaner
5-
//
6-
//fun main() {
7-
// val cleaner = Cleaner.create()
8-
// for (i in 0..9) {
9-
// val vkObject: VkObject = VkObject(i.L)
10-
// cleaner.register(vkObject) { println("VkObject with id $i, is gc'ed") }
11-
// }
12-
//
13-
// //myObjects are not reachable anymore
14-
// //do some other memory intensive work
15-
// for (i in 1..10000) {
16-
// val a = IntArray(10000)
17-
// try {
18-
// Thread.sleep(1)
19-
// } catch (e: InterruptedException) {
20-
// }
21-
//
22-
// }
23-
//}
24-
//
25-
//inline class VkObject(val handle: Long)
3+
import glm_.L
4+
import java.lang.ref.Cleaner
5+
6+
fun main() {
7+
val cleaner = Cleaner.create()
8+
for (i in 0..9) {
9+
val vkObject: VkObject = VkObject(i.L)
10+
cleaner.register(vkObject) { println("VkObject with id $i, is gc'ed") }
11+
}
12+
13+
//myObjects are not reachable anymore
14+
//do some other memory intensive work
15+
for (i in 1..10000) {
16+
val a = IntArray(10000)
17+
try {
18+
Thread.sleep(1)
19+
} catch (e: InterruptedException) {
20+
}
21+
22+
}
23+
}
24+
25+
inline class VkObject(val handle: Long)

src/test/kotlin/tests/01 initInstance.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class `01 initInstance` : StringSpec() {
1515

1616
"01 initInstance" {
1717

18+
println("entries")
19+
for(e in System.getenv().entries)
20+
println("[${e.key}] = ${e.value}")
21+
1822
// initialize the vk::ApplicationInfo structure
1923
val applicationInfo = ApplicationInfo (appName, 1, engineName, 1, VK_API_VERSION_1_1)
2024

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package tests
2+
3+
import io.kotlintest.specs.StringSpec
4+
5+
class `03 initCommandBuffer` : StringSpec() {
6+
init {
7+
"03 initCommandBuffer" {
8+
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)