test fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
4906bac10f
commit
f8a74456cc
@ -56,7 +56,7 @@ pub const PROXMOX_BACKUP_KERNEL_FN: &str =
|
||||
/// This is a simply way to get the full path for configuration files.
|
||||
/// #### Example:
|
||||
/// ```
|
||||
/// # #[macro_use] extern crate proxmox_backup;
|
||||
/// use pbs_buildcfg::configdir;
|
||||
/// let cert_path = configdir!("/proxy.pfx");
|
||||
/// ```
|
||||
#[macro_export]
|
||||
|
@ -278,7 +278,7 @@ impl TryFrom<super::DataBlob> for BackupManifest {
|
||||
#[test]
|
||||
fn test_manifest_signature() -> Result<(), Error> {
|
||||
|
||||
use crate::backup::{KeyDerivationConfig};
|
||||
use crate::{KeyDerivationConfig};
|
||||
|
||||
let pw = b"test";
|
||||
|
||||
|
@ -379,8 +379,8 @@ mod test {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
const fn make_test_time(mday: i32, hour: i32, min: i32) -> libc::time_t {
|
||||
(mday*3600*24 + hour*3600 + min*60) as libc::time_t
|
||||
const fn make_test_time(mday: i32, hour: i32, min: i32) -> i64 {
|
||||
(mday*3600*24 + hour*3600 + min*60) as i64
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -8,8 +8,8 @@ use std::io::Write;
|
||||
///
|
||||
/// #### Example:
|
||||
/// ```
|
||||
/// #[macro_use] extern crate proxmox_backup;
|
||||
/// # use anyhow::{bail, format_err, Error};
|
||||
/// use proxmox_backup::flog;
|
||||
/// use proxmox_backup::tools::{FileLogger, FileLogOptions};
|
||||
///
|
||||
/// # std::fs::remove_file("test.log");
|
||||
|
Loading…
Reference in New Issue
Block a user