Bug #21
open[ CTS ] Assertion failure due to insufficient GnssMeasurementEvents before location signal.
0%
Description
Failure Analysis Report¶
Cluster Summary¶
| Property | Value |
|---|---|
| Cluster ID | #6 |
| Severity | Medium |
| Category | Test Case Issue |
| Confidence | 4/5 |
| Impact | 1 failures |
System Information¶
| Property | Value |
|---|---|
| Fingerprint | Trimble/T70/thorpe:15/AQ3A.250408.001/02.00.20.251106:user/release-keys |
| Build ID | AQ3A.250408.001 |
| Product | T70 |
| Model | T70 |
| Android Version | 15 |
| Security Patch | 2025-10-01 |
| Test Suite | CTS |
AI Analysis¶
Summary:
Assertion failure due to insufficient GnssMeasurementEvents before location signal.
The test method 'testGnssMeasurementWhenNoLocation' in the 'GnssMeasurementWhenNoLocationTest' class is failing because it expects at least two GnssMeasurementEvents to be reported before a location signal is received. The error indicates that during a cold start scenario, the location was received too early, violating the expected behavior outlined in the test case. This may occur if other GPS applications are active or if the GNSS hardware is not properly initialized for a cold start.
Root Cause:
The test failed because the GNSS system reported a location before the required number of GnssMeasurementEvents, likely due to insufficient initialization or interference from other GPS applications.
Suggested Solution:
Ensure that there are no other active GPS applications that could interfere with the GNSS system during the cold start of this test. Additionally, consider implementing a waiting mechanism or increasing the timeout before the test checks for location receipt to allow for the necessary events to be reported.
Technical Details¶
Stack Trace Signature:
junit.framework.AssertionFailedError: Failing tests are:
(Test: FAIL) Location was received before 2 GnssMeasurementEvents with measurements were reported. Test expects at least 2 GnssMeasurementEvents before a location, given the cold start start. Ensure no other active GPS apps (so the cold start command works) and retry?
at junit.framework.Assert.fail(Assert.java:50)
at android.location.cts.common.SoftAssert.assertAll(SoftAssert.java:162)
at android.location.cts.gnss.GnssMeasurementWhenN
Affected Test Cases¶
Failure 1¶
- Module:
CtsLocationGnssTestCases - Test Case:
android.location.cts.gnss.GnssMeasurementWhenNoLocationTest#testGnssMeasurementWhenNoLocation - Stack Trace:
junit.framework.AssertionFailedError: Failing tests are:
(Test: FAIL) Location was received before 2 GnssMeasurementEvents with measurements were reported. Test expects at least 2 GnssMeasurementEvents before a location, given the cold start start. Ensure no other active GPS apps (so the cold start command works) and retry?
at junit.framework.Assert.fail(Assert.java:50)
at android.location.cts.common.SoftAssert.assertAll(SoftAssert.java:162)
at android.location.cts.gnss.GnssMeasurementWhenNoLocationTest.testGnssMeasurementWhenNoLocation(GnssMeasurementWhenNoLocationTest.java:200)