Skip to contentSkip to conversation

lib: tst_resm() put back redirection to newlib

PATCH New Cyril Hrubis 1 participant 1 message Dec 1, 2020 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: tst_resm() put back redirection to newlib

We do have new library code calling back to old library tst_brkm() at least in move_pages/move_pages12.c hence we have to keep the redirection in the test library for the time being.

Fixes #745

Fixes 61db712e3557 (lib: Fix SAFE_MACROS() redirection to new library)
---
 lib/tst_res.c | 2 ++
 1 file changed, 2 insertions(+)
lib/tst_res.c +2 -0
index c9ba0fa66..8d86b48a4 100644
@@ -587,6 +587,8 @@ void tst_brkm__(const char *file, const int lineno, int ttype,
 			tst_brk_(file, lineno, TBROK,
 			         "Non-NULL cleanup in newlib!");
 		}
+
+		tst_brk_(file, lineno, ttype, "%s", tmesg);
 	}
 
 	tst_brk__(file, lineno, ttype, func, "%s", tmesg);
Signature · 1 line
2.26.2