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