Skip to content

Commit 8786290

Browse files
authored
Release tests throws exceptions in InputSystem (ISXB-581) (#1718)
* ISXB-581 * added changelog * updated link in changelog
1 parent a6ab48e commit 8786290

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ however, it has to be formatted properly to pass verification tests.
2121
- Fixed serialization migration in the Tracked Pose Driver component causing bindings to clear when prefabs are used in some cases ([case ISXB-512](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-512), [case ISXB-521](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-521)).
2222
- Fixed Tracked Pose Driver to use `Transform.SetLocalPositionAndRotation` when available to improve performance. Based on the user contribution from [DevDunk](https://forum.unity.com/members/devdunk.4432119/) in a [forum post](https://forum.unity.com/threads/more-performant-tracked-pose-driver-solution-included.1462691).
2323
- Fixed the `Clone` methods of `InputAction` and `InputActionMap` so it copies the Initial State Check flag (`InputAction.wantsInitialStateCheck`) of input actions.
24+
- Fixed the "Release tests throws exception in InputSystem" bug ([case ISXB-581](https://issuetracker.unity3d.com/issues/release-tests-fail-when-input-system-package-is-installed)).
2425

2526
## [1.6.3] - 2023-07-11
2627

Packages/com.unity.inputsystem/Tests/TestFixture/InputTestFixture.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ public virtual void Setup()
9191
runtime = new InputTestRuntime();
9292

9393
// Push current input system state on stack.
94+
#if DEVELOPMENT_BUILD || UNITY_EDITOR
9495
InputSystem.SaveAndReset(enableRemoting: false, runtime: runtime);
95-
96+
#endif
9697
// Override the editor messing with logic like canRunInBackground and focus and
9798
// make it behave like in the player.
9899
#if UNITY_EDITOR
@@ -165,7 +166,9 @@ public virtual void TearDown()
165166

166167
try
167168
{
169+
#if DEVELOPMENT_BUILD || UNITY_EDITOR
168170
InputSystem.Restore();
171+
#endif
169172
runtime.Dispose();
170173

171174
// Unhook from play mode state changes.

0 commit comments

Comments
 (0)