diff mbox series

[COMMITTED] lib: tst_resm() put back redirection to newlib

Message ID 20201201084143.22991-1-chrubis@suse.cz
State Accepted
Headers show
Series [COMMITTED] lib: tst_resm() put back redirection to newlib | expand

Commit Message

Cyril Hrubis Dec. 1, 2020, 8:41 a.m. UTC
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)
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 lib/tst_res.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/lib/tst_res.c b/lib/tst_res.c
index c9ba0fa66..8d86b48a4 100644
--- a/lib/tst_res.c
+++ b/lib/tst_res.c
@@ -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);