Jim
10/14/2020, 5:45 AMshouldBeSymbolicLink 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)Jim
10/14/2020, 5:48 AMval 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()
}
sam
10/14/2020, 1:58 PM