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

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