Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Weinand <[email protected]>
  • Loading branch information
bwoebi committed Nov 13, 2024
1 parent e6d023c commit 0a66749
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions components-rs/sidecar.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ void ddog_ph_file_drop(struct ddog_NativeFile ph);

ddog_MaybeError ddog_alloc_anon_shm_handle(uintptr_t size, struct ddog_ShmHandle **handle);

ddog_MaybeError ddog_alloc_anon_shm_handle_named(uintptr_t size,
struct ddog_ShmHandle **handle,
ddog_CharSlice name);

ddog_MaybeError ddog_map_shm(struct ddog_ShmHandle *handle,
struct ddog_MappedMem_ShmHandle **mapped,
void **pointer,
Expand Down
10 changes: 8 additions & 2 deletions tests/ext/request-replayer/dd_trace_agent_env.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ DDTrace\ExceptionSpanEvent serialization with overridden attributes
--SKIPIF--
<?php include __DIR__ . '/../includes/skipif_no_dev_env.inc'; ?>
<?php
echo "nocache\n";
if (PHP_VERSION_ID >= 80100) {
echo "nocache\n";
}
$ctx = stream_context_create([
'http' => [
'method' => 'PUT',
Expand All @@ -28,7 +30,11 @@ datadog.trace.agent_test_session_token=dd_trace_agent_env
<?php

$span = \DDTrace\start_span();
usleep(500000);
if (getenv('USE_ZEND_ALLOC') === '0' && !getenv("SKIP_ASAN")) {
sleep(2); // timing sensitive
} else {
usleep(500000);
}
\DDTrace\close_span();
var_dump($span->env);

Expand Down

0 comments on commit 0a66749

Please sign in to comment.