Merge "Switch rootn(f, 0) tests to expect +inf instead of NaN."
diff --git a/java/tests/RSTest_CompatLib/src/com/android/rs/test/math_conformance.rs b/java/tests/RSTest_CompatLib/src/com/android/rs/test/math_conformance.rs
index 2d62f34..ae78feb 100644
--- a/java/tests/RSTest_CompatLib/src/com/android/rs/test/math_conformance.rs
+++ b/java/tests/RSTest_CompatLib/src/com/android/rs/test/math_conformance.rs
@@ -5,8 +5,8 @@
 static bool test_rootn() {
     bool failed = false;
 
-    // rootn(x, 0) -> NaN
-    _RS_ASSERT(isnan(rootn(1.0f, 0)));
+    // rootn(x, 0) -> _inf
+    _RS_ASSERT(isposinf(rootn(1.0f, 0)));
 
     // rootn(+/-0, n) -> +/-inf for odd n < 0
     _RS_ASSERT(isposinf(rootn(0.f, -3)));
diff --git a/java/tests/RsTest/src/com/android/rs/test/math_conformance.rs b/java/tests/RsTest/src/com/android/rs/test/math_conformance.rs
index 2d62f34..b813e20 100644
--- a/java/tests/RsTest/src/com/android/rs/test/math_conformance.rs
+++ b/java/tests/RsTest/src/com/android/rs/test/math_conformance.rs
@@ -5,8 +5,8 @@
 static bool test_rootn() {
     bool failed = false;
 
-    // rootn(x, 0) -> NaN
-    _RS_ASSERT(isnan(rootn(1.0f, 0)));
+    // rootn(x, 0) -> +inf
+    _RS_ASSERT(isposinf(rootn(1.0f, 0)));
 
     // rootn(+/-0, n) -> +/-inf for odd n < 0
     _RS_ASSERT(isposinf(rootn(0.f, -3)));