This replaces the shouty and scary-looking warning:

  WARNING: Couldn't find the global config file.

with a more informational message (assuming site.exp for the global init
file):

  No site.exp file or $DEJAGNU environment variable found.

This was discussed in the thread beginning at:
https://lists.gnu.org/archive/html/dejagnu/2020-12/msg00004.html
---

Tested with 'make all check'

Could this be changed, so that new users are intimidated by the WARNING
when it isn't actually a problem they need to care about?

For example, GCC's testsuites work perfectly well without any global
config, because they have sensible defaults for everything.

 runtest.exp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/runtest.exp b/runtest.exp
index a10e275..6ed5f67 100644
--- a/runtest.exp
+++ b/runtest.exp
@@ -1021,10 +1021,9 @@ proc setup_build_hook { name } {
 #
 
 if { [load_file -- [file join $libdir $global_init_file]] == 0 } {
-    # If $DEJAGNU isn't set either then there isn't any global config file.
-    # Warn the user as there really should be one.
+    # If $DEJAGNU isn't set either then tell the user there isn't any global 
config file.
     if { ! [info exists env(DEJAGNU)] } {
-       send_error "WARNING: Couldn't find the global config file.\n"
+       send_error "No $global_init_file file or \$DEJAGNU environment variable 
found.\n"
     }
 }
 
-- 
2.51.0


Reply via email to