We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e194d20 commit 6f5bf9fCopy full SHA for 6f5bf9f
tools/testing/selftests/coredump/stackdump_test.c
@@ -96,7 +96,7 @@ TEST_F(coredump, stackdump)
96
char *test_dir, *line;
97
size_t line_length;
98
char buf[PATH_MAX];
99
- int ret, i;
+ int ret, i, status;
100
FILE *file;
101
pid_t pid;
102
@@ -129,6 +129,10 @@ TEST_F(coredump, stackdump)
129
/*
130
* Step 3: Wait for the stackdump script to write the stack pointers to the stackdump file
131
*/
132
+ waitpid(pid, &status, 0);
133
+ ASSERT_TRUE(WIFSIGNALED(status));
134
+ ASSERT_TRUE(WCOREDUMP(status));
135
+
136
for (i = 0; i < 10; ++i) {
137
file = fopen(STACKDUMP_FILE, "r");
138
if (file)
0 commit comments