Re: [PATCH] Enable simple invocation of runtest in testsuite

2020-05-21 Thread Jonathan Wakely via Gcc-patches

On 23/04/20 12:58 +0200, Matthias Kretz wrote:

I noticed this inconvenience while learning dejagnu.

From: Matthias Kretz 

   * testsuite/Makefile.am: Remove dup target_triplet and set tool,
   allowing runtest to work without arguments.


Committed to master, thanks.



[PATCH] Enable simple invocation of runtest in testsuite

2020-04-23 Thread Matthias Kretz
I noticed this inconvenience while learning dejagnu.

From: Matthias Kretz 

* testsuite/Makefile.am: Remove dup target_triplet and set tool,
allowing runtest to work without arguments.
---
 libstdc++-v3/testsuite/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/Makefile.am b/libstdc++-v3/testsuite/Makefile.am
index e19509d2534..9cef1e65e1b 100644
--- a/libstdc++-v3/testsuite/Makefile.am
+++ b/libstdc++-v3/testsuite/Makefile.am
@@ -47,6 +47,7 @@ site.exp: Makefile
 	@echo '## these variables are automatically generated by make ##' >site.tmp
 	@echo '# Do not edit here.  If you wish to override these values' >>site.tmp
 	@echo '# edit the last section' >>site.tmp
+	@echo 'set tool libstdc++' >>site.tmp
 	@echo 'set srcdir $(srcdir)' >>site.tmp
 	@echo "set objdir `pwd`" >>site.tmp
 	@echo 'set build_alias "$(build_alias)"' >>site.tmp
@@ -55,7 +56,6 @@ site.exp: Makefile
 	@echo 'set host_triplet $(host_triplet)' >>site.tmp
 	@echo 'set target_alias "$(target_alias)"' >>site.tmp
 	@echo 'set target_triplet $(target_triplet)' >>site.tmp
-	@echo 'set target_triplet $(target_triplet)' >>site.tmp
 	@echo 'set libiconv "$(LIBICONV)"' >>site.tmp
 	@echo 'set baseline_dir "$(baseline_dir)"' >> site.tmp
 	@echo 'set baseline_subdir_switch "$(baseline_subdir_switch)"' >> site.tmp