Fix unit test when ENABLE_RR_EMIT_PRINT_LOCATION is defined

Bug: b/149328074
Change-Id: Ia5af4622f2a024ea08395f7b7412e086fdb34c39
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41270
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Antonio Maiorano <amaiorano@google.com>
diff --git a/src/Reactor/ReactorUnitTests.cpp b/src/Reactor/ReactorUnitTests.cpp
index 63db739..f95ba71 100644
--- a/src/Reactor/ReactorUnitTests.cpp
+++ b/src/Reactor/ReactorUnitTests.cpp
@@ -156,7 +156,7 @@
 
 TEST(ReactorUnitTests, PrintPrimitiveTypes)
 {
-#ifdef ENABLE_RR_PRINT
+#if defined(ENABLE_RR_PRINT) && !defined(ENABLE_RR_EMIT_PRINT_LOCATION)
 	FunctionT<void()> function;
 	{
 		bool b(true);
@@ -227,7 +227,7 @@
 
 TEST(ReactorUnitTests, PrintReactorTypes)
 {
-#ifdef ENABLE_RR_PRINT
+#if defined(ENABLE_RR_PRINT) && !defined(ENABLE_RR_EMIT_PRINT_LOCATION)
 	FunctionT<void()> function;
 	{
 		Bool b(true);