Blame SOURCES/0070-testsuite-change-test-for-make_description.patch

562801
From b663631fe2a6b31a3dcc1f1dfaeef8377ff07612 Mon Sep 17 00:00:00 2001
562801
From: Matej Habrnal <mhabrnal@redhat.com>
562801
Date: Tue, 16 Sep 2014 01:37:19 +0200
562801
Subject: [LIBREPORT PATCH 70/93] testsuite: change test for make_description
562801
562801
Change test for make_description because of new order its items.
562801
562801
Related to rhbz#1067440
562801
562801
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
562801
---
562801
 tests/make_description.at | 22 +++++++++++-----------
562801
 1 file changed, 11 insertions(+), 11 deletions(-)
562801
562801
diff --git a/tests/make_description.at b/tests/make_description.at
562801
index 7415cf8..e606065 100644
562801
--- a/tests/make_description.at
562801
+++ b/tests/make_description.at
562801
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
562801
     const int list_flags = CD_FLAG_TXT | CD_FLAG_ISNOTEDITABLE | CD_FLAG_LIST;
562801
 
562801
     problem_data_add(pd, FILENAME_PACKAGE, "libreport", list_flags);
562801
-    problem_data_add(pd, FILENAME_EXECUTABLE, "/usr/bin/sh", list_flags);
562801
+    problem_data_add(pd, FILENAME_REASON, "will_segfault killed by SIGSEGV", list_flags);
562801
     problem_data_add(pd, FILENAME_COUNT, "0", list_flags);
562801
 
562801
     problem_data_add_text_noteditable(pd,
562801
@@ -103,9 +103,9 @@ int main(int argc, char **argv)
562801
             "Reported:       https://bugzilla.redhat.com/1000000\n"
562801
             "                https://access.redhat.com/home\n"
562801
             "                https://bug-report.itos.redhat.com\n",
562801
-            FILENAME_COUNT,      14 - strlen(FILENAME_COUNT),      "", "0",
562801
-            FILENAME_EXECUTABLE, 14 - strlen(FILENAME_EXECUTABLE), "", "/usr/bin/sh",
562801
-            FILENAME_PACKAGE,    14 - strlen(FILENAME_PACKAGE),    "", "libreport");
562801
+            FILENAME_REASON,     14 - strlen(FILENAME_REASON),     "", "will_segfault killed by SIGSEGV",
562801
+            FILENAME_PACKAGE,    14 - strlen(FILENAME_PACKAGE),    "", "libreport",
562801
+            FILENAME_COUNT,      14 - strlen(FILENAME_COUNT),      "", "0");
562801
 
562801
     if (strcmp(expected, description) != 0)
562801
     {
562801
@@ -133,10 +133,10 @@ int main(int argc, char **argv)
562801
             "\n"
562801
             "%s: %*sText file, %llu bytes\n"
562801
             "%s: %*sText file, %llu bytes\n",
562801
-            FILENAME_BACKTRACE,  14 - strlen(FILENAME_BACKTRACE),  "", backtrace,
562801
-            FILENAME_COUNT,      14 - strlen(FILENAME_COUNT),      "", "0",
562801
-            FILENAME_EXECUTABLE, 14 - strlen(FILENAME_EXECUTABLE), "", "/usr/bin/sh",
562801
+            FILENAME_REASON,     14 - strlen(FILENAME_REASON),     "", "will_segfault killed by SIGSEGV",
562801
             FILENAME_PACKAGE,    14 - strlen(FILENAME_PACKAGE),    "", "libreport",
562801
+            FILENAME_COUNT,      14 - strlen(FILENAME_COUNT),      "", "0",
562801
+            FILENAME_BACKTRACE,  14 - strlen(FILENAME_BACKTRACE),  "", backtrace,
562801
             FILENAME_BACKTRACE,  14 - strlen(FILENAME_BACKTRACE),  "", (long long unsigned)strlen(backtrace),
562801
             FILENAME_REPORTED_TO,14 - strlen(FILENAME_REPORTED_TO),"", (long long unsigned)strlen(problem_data_get_content_or_NULL(pd, FILENAME_REPORTED_TO))
562801
             );
562801
@@ -155,7 +155,7 @@ int main(int argc, char **argv)
562801
     pd = problem_data_new();
562801
 
562801
     problem_data_add(pd, FILENAME_PACKAGE, "libreport", list_flags);
562801
-    problem_data_add(pd, FILENAME_EXECUTABLE, "/usr/bin/sh", list_flags);
562801
+    problem_data_add(pd, FILENAME_REASON, "will_segfault killed by SIGSEGV", list_flags);
562801
     problem_data_add(pd, FILENAME_COUNT, "0", list_flags);
562801
     problem_data_add(pd, FILENAME_BACKTRACE, backtrace,  CD_FLAG_TXT | CD_FLAG_ISNOTEDITABLE);
562801
 
562801
@@ -168,10 +168,10 @@ int main(int argc, char **argv)
562801
             "%s: %*s%s\n"
562801
             "\n"
562801
             "%s: %*sText file, %llu bytes\n",
562801
-            FILENAME_BACKTRACE,  14 - strlen(FILENAME_BACKTRACE),  "", backtrace,
562801
-            FILENAME_COUNT,      14 - strlen(FILENAME_COUNT),      "", "0",
562801
-            FILENAME_EXECUTABLE, 14 - strlen(FILENAME_EXECUTABLE), "", "/usr/bin/sh",
562801
+            FILENAME_REASON,     14 - strlen(FILENAME_REASON),     "", "will_segfault killed by SIGSEGV",
562801
             FILENAME_PACKAGE,    14 - strlen(FILENAME_PACKAGE),    "", "libreport",
562801
+            FILENAME_COUNT,      14 - strlen(FILENAME_COUNT),      "", "0",
562801
+            FILENAME_BACKTRACE,  14 - strlen(FILENAME_BACKTRACE),  "", backtrace,
562801
             FILENAME_BACKTRACE,  14 - strlen(FILENAME_BACKTRACE),  "", (long long unsigned)strlen(backtrace)
562801
             );
562801
 
562801
-- 
562801
1.8.3.1
562801