Similar deal, `shouldBeSymbolicLink should check i...
# kotest
j
Similar deal,
shouldBeSymbolicLink should check if file is symbolic link
blows up in windows unless the test suite is running as admin. The easiest thing to do would be to just disable this test in windows. Possible solutions are to just disable this test in windows or check if the process is running as admin on windows using something like this: https://stackoverflow.com/a/10654463 (it works in the kotlin REPL but the SO comments make it sound like it's not a sure thing)
Copy code
val isWindows = true
val skip = isWindows && run {
    val command = """reg query "HKU\S-1-5-19""""
    val p = Runtime.getRuntime().exec(command)
    p.waitFor()
 
    0 != p.exitValue()
}
s
apache commons lang has utility methods for each env