Skip to content

Commit 96f8a4e

Browse files
committed
Make Windows API and tests work
1 parent c84f7c7 commit 96f8a4e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

libdd-profiling-ffi/src/exporter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ unsafe fn try_to_url(slice: CharSlice) -> anyhow::Result<hyper::Uri> {
8080
}
8181
#[cfg(windows)]
8282
if let Some(path) = str.strip_prefix("windows:") {
83-
return Ok(exporter::named_pipe_path_to_uri(path.as_ref())?);
83+
use libdd_common::connector::named_pipe::named_pipe_path_to_uri;
84+
return Ok(named_pipe_path_to_uri(path.as_ref())?);
8485
}
8586
Ok(hyper::Uri::from_str(str)?)
8687
}

libdd-profiling/tests/form.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use libdd_profiling::internal::EncodedProfile;
77
use std::path::PathBuf;
88

99
/// Create a file-based exporter and return the temp file path
10-
#[cfg(unix)]
1110
fn create_file_exporter(
1211
profiling_library_name: &str,
1312
profiling_library_version: &str,
@@ -52,7 +51,6 @@ mod tests {
5251
}
5352

5453
#[test]
55-
#[cfg(unix)]
5654
#[cfg_attr(miri, ignore)]
5755
fn multipart_agent() {
5856
let profiling_library_name = "dd-trace-foo";
@@ -157,7 +155,6 @@ mod tests {
157155
}
158156

159157
#[test]
160-
#[cfg(unix)]
161158
#[cfg_attr(miri, ignore)]
162159
fn including_internal_metadata() {
163160
let profiling_library_name = "dd-trace-foo";
@@ -218,7 +215,6 @@ mod tests {
218215
}
219216

220217
#[test]
221-
#[cfg(unix)]
222218
#[cfg_attr(miri, ignore)]
223219
fn including_process_tags() {
224220
let profiling_library_name = "dd-trace-foo";
@@ -274,7 +270,6 @@ mod tests {
274270
}
275271

276272
#[test]
277-
#[cfg(unix)]
278273
#[cfg_attr(miri, ignore)]
279274
fn including_info() {
280275
let profiling_library_name = "dd-trace-foo";
@@ -337,7 +332,6 @@ mod tests {
337332
}
338333

339334
#[test]
340-
#[cfg(unix)]
341335
#[cfg_attr(miri, ignore)]
342336
fn multipart_agentless() {
343337
let profiling_library_name = "dd-trace-foo";

0 commit comments

Comments
 (0)