diff --git a/kotlin-native/HACKING.md b/kotlin-native/HACKING.md index 7eebbf99435..d39dc483a2b 100644 --- a/kotlin-native/HACKING.md +++ b/kotlin-native/HACKING.md @@ -140,9 +140,9 @@ To run Kotlin/Native target-specific tests use (takes time): To run runtime unit tests on the host machine for both mimalloc and the standard allocator: - ./gradlew :kotlin-native:hostRuntimeTests + ./gradlew :kotlin-native:runtime:hostRuntimeTests -To run tests for only one of these two allocators, run `:kotlin-native:hostStdAllocRuntimeTests` or `:kotlin-native:hostMimallocRuntimeTests`. +To run tests for only one of these two allocators, run `:kotlin-native:runtime:hostStdAllocRuntimeTests` or `:kotlin-native:runtime:hostMimallocRuntimeTests`. We use [Google Test](https://github.com/google/googletest) to execute the runtime unit tests. The build automatically fetches the specified Google Test revision to `kotlin-native/runtime/googletest`. It is possible to manually modify the downloaded GTest sources for debug @@ -150,11 +150,11 @@ purposes; the build will not overwrite them by default. To forcibly redownload Google Test when running tests, use the corresponding project property: - ./gradlew :kotlin-native:hostRuntimeTests -Prefresh-gtest + ./gradlew :kotlin-native:runtime:hostRuntimeTests -Prefresh-gtest -or run the `downloadGTest` task directly with the `--refresh` CLI key: +or run the `downloadGoogleTest` task directly with the `--refresh` CLI key: - ./gradlew :kotlin-native:downloadGTest --refresh + ./gradlew :kotlin-native:downloadGoogleTest --refresh To use a local GTest copy instead of the downloaded one, add the following line to `kotlin-native/runtime/build.gradle.kts`: diff --git a/kotlin-native/runtime/src/main/cpp/Memory.h b/kotlin-native/runtime/src/main/cpp/Memory.h index cac7772db33..0ffd021db63 100644 --- a/kotlin-native/runtime/src/main/cpp/Memory.h +++ b/kotlin-native/runtime/src/main/cpp/Memory.h @@ -170,7 +170,7 @@ void ClearMemoryForTests(MemoryState*); // Arena containers are not reference counted, and is explicitly freed when leaving // its owner frame. // Escape analysis algorithm is the provider of information for decision on exact aux slot -// selection, and comes from upper bound esteemation of object lifetime. +// selection, and comes from upper bound estimation of object lifetime. // OBJ_GETTER(AllocInstance, const TypeInfo* type_info) RUNTIME_NOTHROW; diff --git a/kotlin-native/runtime/src/main/cpp/Utils.hpp b/kotlin-native/runtime/src/main/cpp/Utils.hpp index 2574f3382b7..1f5a4b24ed5 100644 --- a/kotlin-native/runtime/src/main/cpp/Utils.hpp +++ b/kotlin-native/runtime/src/main/cpp/Utils.hpp @@ -56,7 +56,7 @@ protected: ~Pinned() = default; }; -// A helper that scopley assings a value to a variable. The variable will +// A helper that scopley assigns a value to a variable. The variable will // be set to its original value upon destruction of the AutoReset instance. // Note that an AutoReset instance must have a shorter lifetime than // the variable it works with to avoid invalid memory access.