From 697b89a8f9aeba4d6729e18cf4b198423093759e Mon Sep 17 00:00:00 2001 From: Adrian Pop Date: Wed, 4 Mar 2015 11:07:48 +0000 Subject: [PATCH] - suppress library not found message when running the testsuite. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24890 f25d12d1-65f4-0310-ae8a-bbce733d8d8e --- Compiler/SimCode/SimCodeUtil.mo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Compiler/SimCode/SimCodeUtil.mo b/Compiler/SimCode/SimCodeUtil.mo index a29e9bc8757..9d4f97f74c5 100644 --- a/Compiler/SimCode/SimCodeUtil.mo +++ b/Compiler/SimCode/SimCodeUtil.mo @@ -9380,7 +9380,10 @@ algorithm else (); end match; if not max(System.regularFileExists(d+"/"+n) for d in dirs, n in names) then - Error.addSourceMessage(Error.EXT_LIBRARY_NOT_FOUND, {name, sum("\n " + d+"/"+n for d in dirs, n in names)}, info); + // suppress this warning if we're running the testsuite + if not Config.getRunningTestsuite() then + Error.addSourceMessage(Error.EXT_LIBRARY_NOT_FOUND, {name, sum("\n " + d+"/"+n for d in dirs, n in names)}, info); + end if; end if; end if; end lookForExtFunctionLibrary;