Skip to content

Commit

Permalink
Update tests to match rcc output
Browse files Browse the repository at this point in the history
Just a few more harmless constants
  • Loading branch information
jyn514 committed May 28, 2020
1 parent a71aa99 commit fe546e6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/expectations/tests/issue-1676-macro-namespace-prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
non_camel_case_types,
non_upper_case_globals
)]

pub const nssv_inline_ns: u32 = 0;
1 change: 1 addition & 0 deletions tests/expectations/tests/layout_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
)]

pub const RTE_CACHE_LINE_SIZE: u32 = 64;
pub const __rte_cache_aligned: u32 = 0;
pub const RTE_MEMPOOL_OPS_NAMESIZE: u32 = 32;
pub const RTE_MEMPOOL_MAX_OPS_IDX: u32 = 16;
pub const RTE_HEAP_NUM_FREELISTS: u32 = 13;
Expand Down
1 change: 1 addition & 0 deletions tests/expectations/tests/layout_array_too_long.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
)]

pub const RTE_CACHE_LINE_SIZE: u32 = 64;
pub const __rte_cache_aligned: u32 = 0;
pub const RTE_LIBRTE_IP_FRAG_MAX_FRAG: u32 = 4;
pub const IP_LAST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_LAST_FRAG_IDX;
pub const IP_FIRST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_FIRST_FRAG_IDX;
Expand Down
1 change: 1 addition & 0 deletions tests/expectations/tests/layout_large_align_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
}
}
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
pub const __rte_cache_aligned: u32 = 0;
pub const RTE_LIBRTE_IP_FRAG_MAX_FRAG: u32 = 4;
pub const IP_LAST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_LAST_FRAG_IDX;
pub const IP_FIRST_FRAG_IDX: _bindgen_ty_1 = _bindgen_ty_1::IP_FIRST_FRAG_IDX;
Expand Down
2 changes: 2 additions & 0 deletions tests/expectations/tests/layout_mbuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ where
}
pub const RTE_CACHE_LINE_MIN_SIZE: u32 = 64;
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
pub const __rte_cache_aligned: u32 = 0;
pub const __rte_cache_min_aligned: u32 = 0;
pub type phys_addr_t = u64;
pub type MARKER = [*mut ::std::os::raw::c_void; 0usize];
pub type MARKER8 = [u8; 0usize];
Expand Down
2 changes: 2 additions & 0 deletions tests/expectations/tests/layout_mbuf_1_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> {
impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {}
pub const RTE_CACHE_LINE_MIN_SIZE: u32 = 64;
pub const RTE_CACHE_LINE_SIZE: u32 = 64;
pub const __rte_cache_aligned: u32 = 0;
pub const __rte_cache_min_aligned: u32 = 0;
pub type phys_addr_t = u64;
pub type MARKER = [*mut ::std::os::raw::c_void; 0usize];
pub type MARKER8 = [u8; 0usize];
Expand Down
5 changes: 3 additions & 2 deletions tests/expectations/tests/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
pub mod root {
#[allow(unused_imports)]
use self::super::root;
pub const NAMESPACE: u32 = 0;
extern "C" {
#[link_name = "\u{1}_Z9top_levelv"]
pub fn top_level();
Expand All @@ -24,7 +25,7 @@ pub mod root {
pub fn in_whatever();
}
}
pub mod _bindgen_mod_id_17 {
pub mod _bindgen_mod_id_18 {
#[allow(unused_imports)]
use self::super::super::root;
#[repr(C)]
Expand Down Expand Up @@ -59,7 +60,7 @@ pub mod root {
#[repr(C)]
#[derive(Debug)]
pub struct C<T> {
pub _base: root::_bindgen_mod_id_17::A,
pub _base: root::_bindgen_mod_id_18::A,
pub m_c: T,
pub m_c_ptr: *mut T,
pub m_c_arr: [T; 10usize],
Expand Down

0 comments on commit fe546e6

Please sign in to comment.