]> sourceware.org Git - libabigail.git/commitdiff
test-read-common: Fix error message
authorDodji Seketeli <dodji@redhat.com>
Tue, 26 Mar 2024 15:20:18 +0000 (16:20 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 6 May 2024 17:00:14 +0000 (19:00 +0200)
The error message in test_task::run_abidw in test-read-common.cc is
wrong.  Fixed thus.  Also, emit the error message directly to the standard
error as the error is detected.

* tests/test-read-common.cc (test_task::run_abidw): Fix error
message and emit it to stderr directly.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tests/test-read-common.cc

index 8c682b1c98d888e03c45be3f5cbfc0b4d26f3119..9871f7c4ad5758db9a09d7ba7218329239f97852 100644 (file)
@@ -103,16 +103,12 @@ test_task::run_abidw(const string& extargs)
     drop_private_types += "--headers-dir " + in_public_headers_path +
       " --drop-private-types";
   string cmd = abidw + " " + spec_options + drop_private_types +
-                 " --abidiff " + extargs + in_elf_path;
+    " --abidiff " + extargs + in_elf_path;
   if (system(cmd.c_str()))
     {
-      error_message = string("ABIs differ:\n")
-        + in_abi_path
-        + "\nand:\n"
-        + out_abi_path
-        + "\n"
+      error_message = string("self comparison with abidw failed:\n")
        + "command was: '" + cmd + "'\n";
-
+      std::cerr << error_message;
       return false;
     }
 
This page took 0.033688 seconds and 5 git commands to generate.