]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
bug464969_d_demangle.cpp: Always print "Xa"
authorMark Wielaard <mark@klomp.org>
Mon, 30 Jan 2023 09:21:01 +0000 (10:21 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 30 Jan 2023 09:27:35 +0000 (10:27 +0100)
bug464969_d_demangle depends on producing an error about an
uninitialized variable. But it prints something different
to stdout based on the value of that variable. Which can
produce failures. Make sure to always print the same thing
to stdout.

memcheck/tests/bug464969_d_demangle.cpp
memcheck/tests/bug464969_d_demangle.stdout.exp

index b66c79b38714c4581b6b868641e642c7c5df5a25..00155ce048d62f8d21355fbf160b758b6345050f 100644 (file)
@@ -4,9 +4,9 @@ extern "C" void _D4test4findFiPxaZPxa()
 {
    int a;
    if (a)
-      std::cout << "a\n";
+      std::cout << "Xa\n";
    else
-      std::cout << "!a\n";
+      std::cout << "X" << "a\n";
 }
 
 int main()
index 60fc874768f546a3b331a3323ce1d19df069d8fa..987e3267a0f804221bbb0839d5ad1b434208e074 100644 (file)
@@ -1 +1 @@
-!a
+Xa