diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-12-06 15:39:42 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-12-12 12:04:10 +0100 |
commit | 4c2dada5070c9adc93e548826333c8be34f0c50a (patch) | |
tree | 259defe65f01f2b5ef626fbd619b0295ddb88506 /support/support_record_failure.c | |
parent | 874c28c9f5d14586ab71cd4af6899b11753caf25 (diff) | |
download | glibc-4c2dada5070c9adc93e548826333c8be34f0c50a.tar.gz |
support: Implement <support/descriptors.h> to track file descriptors
(cherry picked from commit f255336a9301619519045548acb2e1027065a837)
Diffstat (limited to 'support/support_record_failure.c')
-rw-r--r-- | support/support_record_failure.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/support/support_record_failure.c b/support/support_record_failure.c index 356798f556..17ab1d80ef 100644 --- a/support/support_record_failure.c +++ b/support/support_record_failure.c @@ -104,3 +104,11 @@ support_record_failure_reset (void) __atomic_store_n (&state->failed, 0, __ATOMIC_RELAXED); __atomic_add_fetch (&state->counter, 0, __ATOMIC_RELAXED); } + +int +support_record_failure_is_failed (void) +{ + /* Relaxed MO is sufficient because we need (blocking) external + synchronization for reliable test error reporting anyway. */ + return __atomic_load_n (&state->failed, __ATOMIC_RELAXED); +} |