Skip to content

Commit 61519ed

Browse files
debug: print
1 parent b3ec550 commit 61519ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • tests/runtime-async/async/cancel-import

tests/runtime-async/async/cancel-import/runner.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//@ args = '--rename my:test/i=test'
22

3+
#include <stdio.h>
4+
35
#include <assert.h>
46
#include <runner.h>
57

@@ -19,6 +21,8 @@ int main() {
1921
// Buggy line is below
2022
//
2123
// This is returning <???> *instead* of SUBTASK_RETURNED_CANCELLED
24+
printf("SUBTASK STATE (pre-macro) [%d]\n", status);
25+
printf("SUBTASK STATE (poste-macro) [%d]\n", SUBTASK_STATE(status));
2226
assert(RUNNER_SUBTASK_STATE(status) == RUNNER_SUBTASK_RETURNED_CANCELLED);
2327
/* assert(RUNNER_SUBTASK_STATE(status) == RUNNER_SUBTASK_STARTING); // <---- maybe it returned? */
2428

0 commit comments

Comments
 (0)