Browse Source

Tighten --objdir option test

Previously, this test did not ensure that the command-line value for
--objdir was in force immediately after loading the local init file.
This allowed ::dejagnu::command_line::restore_cmd_vars to do nothing,
yet the test would still pass.
master
Jacob Bachmeyer 3 years ago
parent
commit
890006e411
  1. 6
      ChangeLog
  2. 4
      testsuite/runtest.main/options.exp

6
ChangeLog

@ -1,3 +1,9 @@
2023-04-18 Jacob Bachmeyer <jcb@gnu.org>
* testsuite/runtest.main/options.exp: Adjust pattern matched in
--objdir test to require the objdir given on the command line to
remain in force immediately after the local init file is loaded.
2022-12-20 Jacob Bachmeyer <jcb@gnu.org>
* dejagnu.h (totals, TestState::totals): Change "real failed" to

4
testsuite/runtest.main/options.exp

@ -1,4 +1,4 @@
# Copyright (C) 1992-2016, 2018, 2020 Free Software Foundation, Inc.
# Copyright (C) 1992-2016, 2018, 2020, 2023 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
@ -64,7 +64,7 @@ set tests {
"Ignoring test foo.exp"
"--ignore option" }
{ "-v --objdir xXx"
"Using test binaries in xXx"
"Using test binaries in xXx.*Testsuite root is"
"--objdir option" }
{ "-v --tool xXx"
"Testing xXx"

Loading…
Cancel
Save