[pushed] coroutines, testsuite: Update log messages. [NFC, PR95519]

Message ID C3241FBC-2D7B-4D0D-9EA1-0FE42531488B@googlemail.com
State New
Headers show
Series
  • [pushed] coroutines, testsuite: Update log messages. [NFC, PR95519]
Related show

Commit Message

Peter Bergner via Gcc-patches June 28, 2020, 10:51 a.m.
Hi.

this corrects some pastos in the user error messages for the
testcases, in PR95519.  NFC.

tested on x86_64-darwin, applied to master.
thanks
Iain


This does not affect the test functionality, but only user-
facing debug messages when the tests are run outside the
test-suite.

gcc/testsuite/ChangeLog:

	PR c++/95519
	* g++.dg/coroutines/torture/pr95519-02-final_suspend.C:
	Amend log messages.
	* g++.dg/coroutines/torture/pr95519-03-return-value.C:
	Likewise.
	* g++.dg/coroutines/torture/pr95519-04-yield-value.C:
	Likewise.
	* g++.dg/coroutines/torture/pr95519-05-gro.C: Likewise.
---
 .../g++.dg/coroutines/torture/pr95519-02-final_suspend.C      | 2 +-
 .../g++.dg/coroutines/torture/pr95519-03-return-value.C       | 2 +-
 .../g++.dg/coroutines/torture/pr95519-04-yield-value.C        | 2 +-
 gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C      | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.24.1

Patch

diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C
index 8e7ba11c723..4200c333ee3 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C
@@ -63,7 +63,7 @@  int main ()
     bar ();
     if (called_fs_op != 1 || called_lambda != 1)
       {
-        PRINT ("Failed to call one of the initial_suspend cases");
+        PRINT ("Failed to call one of the final_suspend cases");
         abort ();
       }
 }
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C
index 7d01509001c..cf4c43d1a90 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C
@@ -74,7 +74,7 @@  int main ()
 
   if (called_rv_op != 1 || called_lambda != 1)
     {
-      PRINT ("Failed to call one of the return_void cases");
+      PRINT ("Failed to call one of the return_value cases");
       abort ();
     }
 }
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C
index d09e5ba1075..5f1be4e00f4 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C
@@ -78,7 +78,7 @@  int main ()
 
   if (called_yv_op != 1 || called_lambda != 1)
     {
-      PRINT ("Failed to call one of the return_void cases");
+      PRINT ("Failed to call one of the yield_value cases");
       abort ();
     }
 }
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C
index ba0a1e3dc60..fbbce97ed17 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C
@@ -46,13 +46,13 @@  int main ()
   foo (f);
   if (f.done())
     {
-      PRINT ("unexptected finished f coro");
+      PRINT ("unexpected finished foo coro");
       abort ();
    }
   f.resume();
   if (!f.done())
     {
-      PRINT ("expected f to be finished");
+      PRINT ("expected foo to be finished");
       abort ();
    }